feat(nvim): more modernization
This commit is contained in:
parent
98ea8609fd
commit
8e9d8cd00d
16 changed files with 533 additions and 551 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue