diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2025-10-18 10:13:28 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2025-10-18 10:13:28 -0400 |
| commit | c764831a830ddae48bc11457495390d252d16e90 (patch) | |
| tree | 6acfbbe97b538b42097ac2c84b951faa3f0d530a | |
| parent | a1970dcc39af718bdb237bc3edd7bbacb3b9248e (diff) | |
nvim: updates.
| -rw-r--r-- | nvim/init.lua | 9 | ||||
| -rw-r--r-- | nvim/lua/plugins/telescope.lua | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 30e1e77..e367171 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -18,6 +18,14 @@ vim.o.cinoptions = 'l1,t0,(0,:0' vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' +-- autosave when compiling +vim.api.nvim_create_autocmd({'QuickFixCmdPre'}, { + pattern = {'make', 'lmake'}, + callback = function() + vim.cmd('write') + end, +}) + local colemakdh_binds = { -- movement { modes = { 'n', 'o', 'x' }, lhs = 'n', rhs = 'h', }, @@ -48,6 +56,7 @@ vim.g.no_man_maps = 1 vim.keymap.set('n', '<M-e>', '<cmd>cnext<CR>') vim.keymap.set('n', '<M-i>', '<cmd>cprev<CR>') +vim.keymap.set('n', '<leader>c', '<cmd>make<CR>') vim.api.nvim_create_autocmd('TextYankPost', { desc = 'Highlight when yanking (copying) text', diff --git a/nvim/lua/plugins/telescope.lua b/nvim/lua/plugins/telescope.lua index 2083cee..4fb77d8 100644 --- a/nvim/lua/plugins/telescope.lua +++ b/nvim/lua/plugins/telescope.lua @@ -41,7 +41,7 @@ return { end, { desc = '[S]earch [N]eovim files' } ) vim.keymap.set('n', '<leader>sm', function() - builtin.man_pages { sections = { 'ALL' } } + builtin.man_pages { sections = { '1', '2', '3' } } end, { desc = '[S]earch [M]an pages' }) end, } |
