Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: nvim-navic support #70

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ The colorscheme explicitly adds highlights for the following plugins:
- Neogit
- Gitsigns
- Hydra
- Navic

And many others should "just work!" If you have a plugin that needs explicit highlights, feel free to open an issue or PR and I would be happy to add them.

Expand Down
31 changes: 31 additions & 0 deletions fnl/oxocarbon/init.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -666,4 +666,35 @@
(custom-set-face! :VimwikiLink [] {:link "markdownUrl"})
(custom-set-face! :VimwikiCode [] {:link "markdownCode"})

;; nvim-navic

(custom-set-face! :NavicIconsFile [] {:fg oxocarbon.base14 :bg oxocarbon.none })
(custom-set-face! :NavicIconsModule [] {:fg oxocarbon.base11 :bg oxocarbon.none })
(custom-set-face! :NavicIconsNamespace [] {:fg oxocarbon.base07 :bg oxocarbon.none })
(custom-set-face! :NavicIconsClass [] {:fg oxocarbon.base11 :bg oxocarbon.none})
(custom-set-face! :NavicIconsMethod [] {:fg oxocarbon.base14 :bg oxocarbon.none})
(custom-set-face! :NavicIconsProperty [] {:fg oxocarbon.base12 :bg oxocarbon.none})
(custom-set-face! :NavicIconsField [] {:fg oxocarbon.base12 :bg oxocarbon.none})
(custom-set-face! :NavicIconsConstructor [] {:fg oxocarbon.base10 :bg oxocarbon.none})
(custom-set-face! :NavicIconsEnum [] {:fg oxocarbon.base09 :bg oxocarbon.none})
(custom-set-face! :NavicIconsInterface [] {:fg oxocarbon.base08 :bg oxocarbon.none})
(custom-set-face! :NavicIconsFunction [] {:fg oxocarbon.base11 :bg oxocarbon.none})
(custom-set-face! :NavicIconsVariable [] {:fg oxocarbon.base14 :bg oxocarbon.none})
(custom-set-face! :NavicIconsConstant [] {:fg oxocarbon.base10 :bg oxocarbon.none})
(custom-set-face! :NavicIconsString [] {:fg oxocarbon.base14 :bg oxocarbon.none})
(custom-set-face! :NavicIconsNumber [] {:fg oxocarbon.base15 :bg oxocarbon.none})
(custom-set-face! :NavicIconsBoolean [] {:fg oxocarbon.base09 :bg oxocarbon.none})
(custom-set-face! :NavicIconsEnumMember [] {:fg oxocarbon.base15})
(custom-set-face! :NavicIconsStruct [] {:fg oxocarbon.base11})
(custom-set-face! :NavicIconsOperator [] {:fg oxocarbon.base11 :bg oxocarbon.none})
(custom-set-face! :NavicIconsTypeParameter [] {:fg oxocarbon.base04 :bg oxocarbon.none})
;; (custom-set-face! :NavicIconsArray [] {})
;; (custom-set-face! :NavicIconsObject [] {})
;; (custom-set-face! :NavicIconsKey [] {})
;; (custom-set-face! :NavicIconsNull [] {})
(custom-set-face! :NavicText [] {:fg oxocarbon.base04 :bg oxocarbon.none})
;; (custom-set-face! :NavicSeperator [] {})
;; (custom-set-face! :NavicIconsPackage [] {})
(custom-set-face! :NavicIconsEvent [] {:fg oxocarbon.base12 :bg oxocarbon.none})

{ : oxocarbon }
22 changes: 22 additions & 0 deletions lua/oxocarbon/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,26 @@ vim.api.nvim_set_hl(0, "VimwikiHeaderChar", {link = "markdownH1"})
vim.api.nvim_set_hl(0, "VimwikiList", {link = "markdownListMarker"})
vim.api.nvim_set_hl(0, "VimwikiLink", {link = "markdownUrl"})
vim.api.nvim_set_hl(0, "VimwikiCode", {link = "markdownCode"})
vim.api.nvim_set_hl(0, "NavicIconsFile", {fg = oxocarbon.base14, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsModule", {fg = oxocarbon.base11, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsNamespace", {fg = oxocarbon.base07, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsClass", {fg = oxocarbon.base11, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsMethod", {fg = oxocarbon.base14, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsProperty", {fg = oxocarbon.base12, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsField", {fg = oxocarbon.base12, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsConstructor", {fg = oxocarbon.base10, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsEnum", {fg = oxocarbon.base09, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsInterface", {fg = oxocarbon.base08, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsFunction", {fg = oxocarbon.base11, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsVariable", {fg = oxocarbon.base14, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsConstant", {fg = oxocarbon.base10, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsString", {fg = oxocarbon.base14, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsNumber", {fg = oxocarbon.base15, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsBoolean", {fg = oxocarbon.base09, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsEnumMember", {fg = oxocarbon.base15})
vim.api.nvim_set_hl(0, "NavicIconsStruct", {fg = oxocarbon.base11})
vim.api.nvim_set_hl(0, "NavicIconsOperator", {fg = oxocarbon.base11, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsTypeParameter", {fg = oxocarbon.base04, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicText", {fg = oxocarbon.base04, bg = oxocarbon.none})
vim.api.nvim_set_hl(0, "NavicIconsEvent", {fg = oxocarbon.base12, bg = oxocarbon.none})
return {oxocarbon = oxocarbon}