Fix neovim
This commit is contained in:
parent
95cc486ad1
commit
6af9021c08
|
@ -56,7 +56,7 @@ nvim_lsp.clangd.setup {
|
||||||
filetypes = {"c","cpp","objc","objcpp"},
|
filetypes = {"c","cpp","objc","objcpp"},
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
handlers = handlers,
|
handlers = handlers,
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities),
|
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities),
|
||||||
root_dir = root_pattern {
|
root_dir = root_pattern {
|
||||||
"CMakeList.txt",
|
"CMakeList.txt",
|
||||||
"compile_flags.txt",
|
"compile_flags.txt",
|
||||||
|
@ -68,7 +68,7 @@ nvim_lsp.clangd.setup {
|
||||||
nvim_lsp.pyright.setup{
|
nvim_lsp.pyright.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
handlers = handlers,
|
handlers = handlers,
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities),
|
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities),
|
||||||
}
|
}
|
||||||
|
|
||||||
nvim_lsp.gopls.setup {
|
nvim_lsp.gopls.setup {
|
||||||
|
@ -76,7 +76,7 @@ nvim_lsp.gopls.setup {
|
||||||
filetypes = {"go", "gomod"},
|
filetypes = {"go", "gomod"},
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
handlers = handlers,
|
handlers = handlers,
|
||||||
capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities),
|
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities),
|
||||||
root_dir = root_pattern{
|
root_dir = root_pattern{
|
||||||
"go.mod",
|
"go.mod",
|
||||||
".git",
|
".git",
|
||||||
|
|
|
@ -19,7 +19,7 @@ nvim_tree.setup {
|
||||||
|
|
||||||
view = {
|
view = {
|
||||||
width = 30,
|
width = 30,
|
||||||
height = 30,
|
-- height = 30,
|
||||||
hide_root_folder = false,
|
hide_root_folder = false,
|
||||||
side = "left",
|
side = "left",
|
||||||
preserve_window_proportions = false,
|
preserve_window_proportions = false,
|
||||||
|
|
Loading…
Reference in New Issue