From 2f3f91682f7b4a33f1791781bfa8eca4f7c9527a Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Wed, 13 May 2026 19:32:22 -0400 Subject: new system on gentoo --- .config/nvim/lua/autocmds.lua | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .config/nvim/lua/autocmds.lua (limited to '.config/nvim/lua/autocmds.lua') diff --git a/.config/nvim/lua/autocmds.lua b/.config/nvim/lua/autocmds.lua deleted file mode 100644 index bff808a..0000000 --- a/.config/nvim/lua/autocmds.lua +++ /dev/null @@ -1,22 +0,0 @@ --- Wrap and check for spell in text filetypes. -vim.api.nvim_create_autocmd('FileType', { - group = vim.api.nvim_create_augroup('wrap_spell', { clear = true }), - pattern = { 'gitcommit', 'markdown' }, - callback = function() - vim.opt_local.wrap = true - vim.opt_local.spell = true - end, -}) - --- Go to last loc when opening a buffer. -vim.api.nvim_create_autocmd('BufReadPost', { - group = vim.api.nvim_create_augroup('last_loc', { clear = true }), - callback = function() - local mark = vim.api.nvim_buf_get_mark(0, '"') - local lcount = vim.api.nvim_buf_line_count(0) - if mark[1] > 0 and mark[1] <= lcount then - -- Protected call to catch errors. - pcall(vim.api.nvim_win_set_cursor, 0, mark) - end - end, -}) -- cgit v1.2.3