diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-05 23:55:57 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-05 23:55:57 +0200 |
| commit | fb5b5f0a7cede3bbf3204cf01ae6e69b213bd4ed (patch) | |
| tree | 3a934fe6c5ae745cca014a431db611f0d4a1489e /lua/plugins/navic.lua | |
| parent | 3ae6b7da1d916931cd5fdf3ce302169f724d33c1 (diff) | |
| download | dotfiles-fb5b5f0a7cede3bbf3204cf01ae6e69b213bd4ed.tar.gz dotfiles-fb5b5f0a7cede3bbf3204cf01ae6e69b213bd4ed.zip | |
Add navic.lua
Diffstat (limited to 'lua/plugins/navic.lua')
| -rw-r--r-- | lua/plugins/navic.lua | 46 |
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 +} |
