feat(nvim): final simplication;

This commit is contained in:
Barrett Ruth 2026-03-01 12:55:32 -05:00
parent 6f664a27bd
commit 060cb3d7a8
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
19 changed files with 46 additions and 163 deletions

View file

@ -1,18 +1,3 @@
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
vim.keymap.set(
'n',
'gh',
vim.cmd.ClangdSwitchSourceHeader,
{ buffer = args.buf }
)
end
end,
group = vim.api.nvim_create_augroup('AClangdKeymap', { clear = true }),
})
return {
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
cmd = {