Nvim: switch F6 to ClangdSwitchSourceHeader, update plugin configs

This commit is contained in:
Robert Kmieć
2022-04-12 11:07:24 +02:00
parent 09cb68cb54
commit 47ef520e56
3 changed files with 15 additions and 4 deletions

View File

@@ -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"),