diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-05-10 17:40:40 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-05-10 17:40:40 +0200 |
| commit | 439bb48189f03344896ebd8547b8a032c73931d8 (patch) | |
| tree | 52a248dd944c8b6ef334200b55273cd8be81930f | |
| parent | 81908ca54068d4b1447303da935ff13005a877b7 (diff) | |
| download | dotfiles-439bb48189f03344896ebd8547b8a032c73931d8.tar.gz dotfiles-439bb48189f03344896ebd8547b8a032c73931d8.zip | |
Automatically attach navic
| -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, |
