Nvim: switch F6 to ClangdSwitchSourceHeader, update plugin configs
This commit is contained in:
@@ -37,6 +37,7 @@ local on_attach = function(client, bufnr)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
|
||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<F6>', '<cmd>ClangdSwitchSourceHeader<cr>', opts)
|
||||
|
||||
-- signature.on_attach({
|
||||
-- bind = true,
|
||||
@@ -106,7 +107,14 @@ nvim_lsp.groovyls.setup (
|
||||
-- )
|
||||
-- )
|
||||
|
||||
clangd_extensions.setup()
|
||||
clangd_extensions.setup({
|
||||
server = {
|
||||
on_attach = on_attach,
|
||||
},
|
||||
inlay_hints = {
|
||||
max_len_align = true,
|
||||
}
|
||||
})
|
||||
-- nvim_lsp.clangd.setup(
|
||||
-- coq.lsp_ensure_capabilities({
|
||||
-- root_dir = nvim_lsp.util.root_pattern("compile_commands.json"),
|
||||
|
||||
Reference in New Issue
Block a user