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

View File

@@ -1,4 +1,3 @@
let g:nvim_tree_indent_markers = 1 "0 by default, this option shows indent markers when folders are open
let g:nvim_tree_git_hl = 1 "0 by default, will enable file highlight for git attributes (can be used without the icons).
let g:nvim_tree_highlight_opened_files = 1 "0 by default, will enable folder and file icon highlight for opened files/directories.
let g:nvim_tree_root_folder_modifier = ':~' "This is the default. See :help filename-modifiers for more options
@@ -137,5 +136,10 @@ require'nvim-tree'.setup {
global = true,
},
},
renderer = {
indent_markers = {
enable = 1 -- this option shows indent markers when folders are open
}
},
}
EOF