dotfiles

my active dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

commit c764831a830ddae48bc11457495390d252d16e90
parent a1970dcc39af718bdb237bc3edd7bbacb3b9248e
Author: Jake Koroman <jake@jakekoroman.com>
Date:   Sat, 18 Oct 2025 10:13:28 -0400

nvim: updates.

Diffstat:
Mnvim/init.lua | 9+++++++++
Mnvim/lua/plugins/telescope.lua | 2+-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git 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 @@ -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, }