Fix neovim

This commit is contained in:
hok7z 2022-12-06 18:54:08 +02:00
parent 95cc486ad1
commit 6af9021c08
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ nvim_lsp.clangd.setup {
filetypes = {"c","cpp","objc","objcpp"},
on_attach = on_attach,
handlers = handlers,
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities),
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities),
root_dir = root_pattern {
"CMakeList.txt",
"compile_flags.txt",
@ -68,7 +68,7 @@ nvim_lsp.clangd.setup {
nvim_lsp.pyright.setup{
on_attach = on_attach,
handlers = handlers,
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities),
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities),
}
nvim_lsp.gopls.setup {
@ -76,7 +76,7 @@ nvim_lsp.gopls.setup {
filetypes = {"go", "gomod"},
on_attach = on_attach,
handlers = handlers,
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities),
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities),
root_dir = root_pattern{
"go.mod",
".git",

View File

@ -19,7 +19,7 @@ nvim_tree.setup {
view = {
width = 30,
height = 30,
-- height = 30,
hide_root_folder = false,
side = "left",
preserve_window_proportions = false,