diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-08 13:55:22 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-08 13:55:22 +0300 |
| commit | dbbbb97b715f022251e2d1826967222b5865a949 (patch) | |
| tree | 92fe1af61b749273c337d786ac55d79d35f6941a /.config/nvim/plugin/autocmds.lua | |
| parent | 5bc29f77a48b8e46513c982362a55884e7f65238 (diff) | |
Neovim: refactored keymaps to , completions now have good keybindings and did some slight tweaks
Diffstat (limited to '.config/nvim/plugin/autocmds.lua')
| -rw-r--r-- | .config/nvim/plugin/autocmds.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/nvim/plugin/autocmds.lua b/.config/nvim/plugin/autocmds.lua new file mode 100644 index 0000000..5272029 --- /dev/null +++ b/.config/nvim/plugin/autocmds.lua @@ -0,0 +1,18 @@ +vim.api.nvim_create_autocmd('TextYankPost', { + desc = 'Highlight when yanking text', + group = vim.api.nvim_create_augroup('highlight-yank', { clear = true }), + callback = function() + vim.highlight.on_yank() + end, +}) + +-- vim.api.nvim_create_autocmd('FileType', { +-- group = vim.api.nvim_create_augroup('disable-auto-comment', { clear = true }), +-- pattern = '*', +-- callback = function() +-- -- c - autowrap using textwidth | r - enter in insert mode | o - o/O in normal mode +-- -- vim.opt.formatoptions:remove({ 'c', 'r', 'o' }) +-- vim.opt.formatoptions:remove('o') +-- -- vim.cmd('set formatoptions-=o') +-- end, +-- }) |
