diff options
Diffstat (limited to '.config/nvim/lua/config/autocmd.lua')
| -rw-r--r-- | .config/nvim/lua/config/autocmd.lua | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/.config/nvim/lua/config/autocmd.lua b/.config/nvim/lua/config/autocmd.lua deleted file mode 100644 index 6f90977..0000000 --- a/.config/nvim/lua/config/autocmd.lua +++ /dev/null @@ -1,43 +0,0 @@ -local autocmd = vim.api.nvim_create_autocmd -- Create autocommand - --- Remove end of buffer ~ on buffer enter -autocmd('BufEnter', { - pattern = '*', - command = "let &fcs='eob: '" -}) - --- Turn off line numbers and signcolumn on entering terminal -autocmd("TermOpen", { - callback = function() - vim.opt_local.number = false - vim.opt_local.relativenumber = false - vim.opt_local.signcolumn = 'no' - end, - desc = "Disable line numbers and signcolumnn in terminal", -}) - --- Insert mode on entering terminal -autocmd('TermOpen', { - pattern = '*', - command = 'startinsert' -}) - --- Insert mode off on Terminal exit -autocmd('BufLeave', { - pattern = 'term://*', - command = 'stopinsert' -}) - --- Close terminal buffer on process exit -autocmd('TermClose', { - pattern = 'term://*', - command = 'call nvim_input("<CR>")' -}) - --- Replacement for vim-highlightedyank -autocmd("TextYankPost", { - desc = "Highlight selection on yanked text", - callback = function() - vim.highlight.on_yank({ higroup = 'IncSearch', timeout = 500 }) - end, -}) |
