Skip to content

Commit

Permalink
feat(module): add highlight support for nvim-navic (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simeon Simeonoff committed Jan 3, 2023
1 parent 5cb2638 commit 0f94892
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/nightfox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ Current list of modules are:
- mini
- modes
- native_lsp
- navic
- neogit
- neotest
- neotree
Expand Down
1 change: 1 addition & 0 deletions lua/nightfox/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ M.module_names = {
"mini",
"modes",
"native_lsp",
"navic",
"neogit",
"neotest",
"neotree",
Expand Down
39 changes: 39 additions & 0 deletions lua/nightfox/group/modules/navic.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-- https://github.com/SmiteshP/nvim-navic

local M = {}

function M.get(spec, config, opts)
-- stylua: ignore
return {
NavicText = { fg = spec.fg1 },
NavicSeparator = { fg = spec.bg4 },

NavicIconsFile = { link = "Directory" },
NavicIconsModule = { link = "@namespace" },
NavicIconsNamespace = { link = "@namespace" },
NavicIconsPackage = { link = "@namespace" },
NavicIconsClass = { link = "Type" },
NavicIconsMethod = { link = "Function" },
NavicIconsProperty = { link = "@property" },
NavicIconsField = { link = "@field" },
NavicIconsConstructor = { link = "Function" },
NavicIconsEnum = { link = "Constant" },
NavicIconsInterface = { link = "Constant" },
NavicIconsFunction = { link = "Function" },
NavicIconsVariable = { link = "@variable" },
NavicIconsConstant = { link = "Constant" },
NavicIconsString = { link = "String" },
NavicIconsNumber = { link = "Number" },
NavicIconsBoolean = { link = "Boolean" },
NavicIconsObject = { link = "@namespace" },
NavicIconsKey = { link = "Identifier" },
NavicIconsNull = { link = "Type" },
NavicIconsEnumMember = { link = "@field" },
NavicIconsStruct = { link = "Type" },
NavicIconsEvent = { link = "Constant" },
NagicIconsOperator = { link = "Operator" },
NavicIconsTypeParameter = { link = "@field" },
}
end

return M
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ There are a few things to note:
- [lsp-trouble.nvim](https://github.com/simrat39/lsp-trouble.nvim)
- [mini.nvim](https://github.com/echasnovski/mini.nvim)
- [modes.nvim](https://github.com/mvllow/modes.nvim)
- [nvim-navic](https://github.com/SmiteshP/nvim-navic)
- [neogit](https://github.com/TimUntersberger/neogit)
- [neotest](https://github.com/nvim-neotest/neotest)
- [neo-tree](https://github.com/nvim-neo-tree/neo-tree.nvim)
Expand Down
1 change: 1 addition & 0 deletions usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ Current list of modules are:
- mini
- modes
- native_lsp
- navic
- neogit
- neotest
- neotree
Expand Down

0 comments on commit 0f94892

Please sign in to comment.