aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/navic.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/navic.lua')
-rw-r--r--.config/nvim/lua/plugins/navic.lua86
1 files changed, 45 insertions, 41 deletions
diff --git a/.config/nvim/lua/plugins/navic.lua b/.config/nvim/lua/plugins/navic.lua
index a58240a..a95485d 100644
--- a/.config/nvim/lua/plugins/navic.lua
+++ b/.config/nvim/lua/plugins/navic.lua
@@ -1,46 +1,50 @@
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 = {
- File = " ",
- Module = " ",
- Namespace = " ",
- Package = " ",
- Class = " ",
- Method = " ",
- Property = " ",
- Field = " ",
- Constructor = " ",
- Enum = "練",
- Interface = "練",
- Function = " ",
- Variable = " ",
- Constant = " ",
- String = " ",
- Number = " ",
- Boolean = "◩ ",
- Array = " ",
- Object = " ",
- Key = " ",
- Null = "ﳠ ",
- EnumMember = " ",
- Struct = " ",
- Event = " ",
- Operator = " ",
- TypeParameter = " ",
- },
- highlight = false,
- separator = " > ",
- depth_limit = 0,
- depth_limit_indicator = "..",
- safe_output = true
+ icons = {
+ File = " ",
+ Module = " ",
+ Namespace = " ",
+ Package = " ",
+ Class = " ",
+ Method = " ",
+ Property = " ",
+ Field = " ",
+ Constructor = " ",
+ Enum = "練",
+ Interface = "練",
+ Function = " ",
+ Variable = " ",
+ Constant = " ",
+ String = " ",
+ Number = " ",
+ Boolean = "◩ ",
+ Array = " ",
+ Object = " ",
+ Key = " ",
+ Null = "ﳠ ",
+ EnumMember = " ",
+ Struct = " ",
+ Event = " ",
+ Operator = " ",
+ TypeParameter = " ",
+ },
+ lsp = {
+ auto_attach = true,
+ --preference = nil,
+ },
+ highlight = false,
+ separator = " > ",
+ depth_limit = 0,
+ depth_limit_indicator = "..",
+ safe_output = true
}