aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-05-10 17:40:40 +0200
committersrdusr <trevorgray@srdusr.com>2023-05-10 17:40:40 +0200
commit439bb48189f03344896ebd8547b8a032c73931d8 (patch)
tree52a248dd944c8b6ef334200b55273cd8be81930f /lua/plugins
parent81908ca54068d4b1447303da935ff13005a877b7 (diff)
downloaddotfiles-439bb48189f03344896ebd8547b8a032c73931d8.tar.gz
dotfiles-439bb48189f03344896ebd8547b8a032c73931d8.zip
Automatically attach navic
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/navic.lua20
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,