From 01729e261340a4462a57bf80f6e591c1371ae996 Mon Sep 17 00:00:00 2001 From: Squibid Date: Sun, 22 Oct 2023 18:17:21 -0400 Subject: kitchen sink: - add code action previews - change indent blankline style - more luasnip snippets - change default mason stuff - customize neorg more - change notify style - change startpage completely - add line info to statusline - change telescope style - change how todo comments look - make indentation work via treesitter --- lua/core/auto.lua | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) (limited to 'lua/core/auto.lua') diff --git a/lua/core/auto.lua b/lua/core/auto.lua index 5a6c3a3..4c50357 100644 --- a/lua/core/auto.lua +++ b/lua/core/auto.lua @@ -2,7 +2,7 @@ local function auto(event, opts) a.nvim_create_autocmd(event, opts) end -a.nvim_create_augroup('bufcheck', {clear = true}) +a.nvim_create_augroup('bufcheck', { clear = true }) auto('TextYankPost', { -- highlight yanks group = 'bufcheck', @@ -26,43 +26,6 @@ auto('BufRead', { -- return to last place desc = 'Return to the last place the buffer was closed in.', }) -auto('TermOpen', { -- start terminal in insert mode - group = 'bufcheck', - pattern = '*', - desc = 'Start terminal in insert mode.', - callback = function() - vim.cmd('startinsert | set winfixheight') - o.winfixheight = true - o.cmdheight = 0 - end -}) - -auto('TermClose', { -- close terminal buffers after shell dies - group = 'bufcheck', - pattern = 'term://*', - desc = 'Close terminal after shell dies.', - callback = function() - vim.cmd('call nvim_input("")') - o.cmdheight = 1 - end -}) - -auto('InsertEnter', { -- toggle things when entering insert mode - group = 'bufcheck', - desc = 'Turn things on insert mode.', - callback = function() - o.colorcolumn = { 80 } - end -}) - -auto('InsertLeave', { -- toggle things when exiting insert mode - group = 'bufcheck', - desc = 'Turn things off insert mode.', - callback = function() - o.colorcolumn = { 0 } - end -}) - auto('BufWritePre', { -- make dirs when they don't exist pattern = '*', group = vim.api.nvim_create_augroup('auto_create_dir', { clear = true }), -- cgit v1.2.1