feat(nvim): more modernization

This commit is contained in:
Barrett Ruth 2026-03-01 12:17:16 -05:00
parent 98ea8609fd
commit 8e9d8cd00d
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
16 changed files with 533 additions and 551 deletions

View file

@ -2,8 +2,10 @@ vim.api.nvim_create_autocmd('LspAttach', {
callback = function(args)
local client = vim.lsp.get_client_by_id(args.data.client_id)
if client and client.name == 'clangd' then
bmap(
{ 'n', 'gh', vim.cmd.ClangdSwitchSourceHeader },
vim.keymap.set(
'n',
'gh',
vim.cmd.ClangdSwitchSourceHeader,
{ buffer = args.buf }
)
end