diff options
| -rw-r--r-- | lua/plugins/navic.lua | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lua/plugins/navic.lua b/lua/plugins/navic.lua index a58240a..c27d76a 100644 --- a/lua/plugins/navic.lua +++ b/lua/plugins/navic.lua @@ -1,13 +1,13 @@ local navic = require("nvim-navic") -local on_attach = function(client, bufnr) - if client.server_capabilities.documentSymbolProvider then - navic.attach(client, bufnr) - end -end +--local on_attach = function(client, bufnr) +-- if client.server_capabilities.documentSymbolProvider then +-- navic.attach(client, bufnr) +-- end +--end -require("lspconfig").clangd.setup { - on_attach = on_attach -} +--require("lspconfig").clangd.setup { +-- on_attach = on_attach +--} navic.setup { icons = { @@ -38,6 +38,10 @@ navic.setup { Operator = " ", TypeParameter = " ", }, + lsp = { + auto_attach = true, + --preference = nil, + }, highlight = false, separator = " > ", depth_limit = 0, |
