aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/config/autocmd.lua
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2026-02-24 19:41:37 +0000
committerJustine Smithies <justine@smithies.me.uk>2026-02-24 19:41:37 +0000
commitda863a8344e960fa6a896ffe24bfdc71aa88e288 (patch)
tree35ddd755ff46e05c89a541e997d4baebf261bf95 /.config/nvim/lua/config/autocmd.lua
parentfc43df4ded3dfef70b21daad37893dad7b03c560 (diff)
Removed Neovim
Diffstat (limited to '.config/nvim/lua/config/autocmd.lua')
-rw-r--r--.config/nvim/lua/config/autocmd.lua43
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,
-})