aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-02-05 23:55:57 +0200
committersrdusr <trevorgray@srdusr.com>2023-02-05 23:55:57 +0200
commitfb5b5f0a7cede3bbf3204cf01ae6e69b213bd4ed (patch)
tree3a934fe6c5ae745cca014a431db611f0d4a1489e /lua/plugins
parent3ae6b7da1d916931cd5fdf3ce302169f724d33c1 (diff)
downloaddotfiles-fb5b5f0a7cede3bbf3204cf01ae6e69b213bd4ed.tar.gz
dotfiles-fb5b5f0a7cede3bbf3204cf01ae6e69b213bd4ed.zip
Add navic.lua
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/navic.lua46
1 files changed, 46 insertions, 0 deletions
diff --git a/lua/plugins/navic.lua b/lua/plugins/navic.lua
new file mode 100644
index 0000000..a58240a
--- /dev/null
+++ b/lua/plugins/navic.lua
@@ -0,0 +1,46 @@
+local navic = require("nvim-navic")
+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
+}
+
+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
+}