dotfiles/config/nvim/after/ftplugin/tsv.lua (view raw)
| 1 | vim.opt_local.spell = true |
| 2 | vim.opt_local.expandtab = false |
| 3 | vim.opt_local.softtabstop = 0 |
| 4 | |
| 5 | Config.map("x", "<localleader>b", "<Esc>`>a</b><Esc>`<i<b><Esc>", true) |
| 6 | Config.map("n", "<localleader>b", "viw<Esc>`>a</b><Esc>`<i<b><Esc>", true) |
| 7 | Config.map("n", "<localleader>a", "viw:'<'>!anpi<cr>", true) |
| 8 | Config.map("n", "<localleader>A", "viw:'<'>!anpi --all<cr>", true) |
| 9 | Config.map("x", "<localleader>a", ":'<'>!anpi<cr>", true) |
| 10 | Config.map("n", "<localleader>r", function() vim.ui.open("https://context.reverso.net/translation/english-ukrainian/".. vim.fn.expand "<cword>") end) |
| 11 | |
| 12 | vim.b.minihipatterns_config = { highlighters = { |
| 13 | bold = { pattern = "<b>.-</b>", group = "Underlined" }, |
| 14 | anpi = { pattern = "anpi%:.*", group = "Error" }, |
| 15 | } } |