2023-11-20 20:59:54 +00:00
|
|
|
(import-macros {: colorscheme
|
|
|
|
: highlight
|
|
|
|
: highlight-link
|
|
|
|
: highlight-get-field} :../macros/cmd)
|
2022-05-12 19:49:19 +00:00
|
|
|
|
2022-04-16 22:24:03 +00:00
|
|
|
(let [mod {}
|
|
|
|
o vim.opt
|
|
|
|
g vim.g
|
2022-05-01 19:52:10 +00:00
|
|
|
dracula (require :dracula)
|
2022-05-12 19:49:19 +00:00
|
|
|
dracula-colors (dracula.colors)]
|
2023-11-20 20:59:54 +00:00
|
|
|
(fn swap-bg-with-fg [fg group]
|
|
|
|
(highlight group {: fg :bg (highlight-get-field group :fg)}))
|
|
|
|
|
2022-08-29 20:36:11 +00:00
|
|
|
(set mod.colors dracula-colors)
|
|
|
|
|
2022-04-16 22:24:03 +00:00
|
|
|
(fn mod.setup []
|
|
|
|
(set g.dracula_show_end_of_buffer false)
|
|
|
|
(set g.dracula_italic_comment true)
|
|
|
|
(set o.background :dark)
|
2022-05-12 19:49:19 +00:00
|
|
|
(colorscheme :dracula)
|
2022-08-28 22:33:48 +00:00
|
|
|
;; Tabline
|
2022-08-29 20:36:11 +00:00
|
|
|
(highlight :TabLine {:fg mod.colors.comment :bg mod.colors.black})
|
|
|
|
(highlight :TabLineSel {:fg mod.colors.white :bg mod.colors.bg})
|
|
|
|
(highlight :TabLineFill {:bg mod.colors.black})
|
2022-05-04 13:03:25 +00:00
|
|
|
;; vim-matchup
|
2022-08-29 20:36:11 +00:00
|
|
|
(highlight :MatchParen {:fg mod.colors.orange :bold true :italic true})
|
2022-05-01 19:52:10 +00:00
|
|
|
(highlight :MatchWord {:italic true})
|
2022-05-04 13:03:25 +00:00
|
|
|
(highlight-link :MatchupVirtualText :Comment)
|
2022-08-20 19:10:22 +00:00
|
|
|
;; vim-illuminate
|
2022-08-29 20:36:11 +00:00
|
|
|
(highlight :IlluminatedWordText {:bg mod.colors.selection})
|
|
|
|
(highlight :IlluminatedWordRead {:bg mod.colors.selection})
|
2023-03-04 19:07:46 +00:00
|
|
|
(highlight :IlluminatedWordWrite {:bg mod.colors.selection :underline true})
|
2023-11-20 20:59:54 +00:00
|
|
|
;; cmp
|
2023-11-28 16:09:38 +00:00
|
|
|
(highlight :PmenuSel {:fg mod.colors.white :bg "#363848"})
|
|
|
|
(highlight :CmpCursorLine {:bg "#363848"})
|
2023-11-20 20:59:54 +00:00
|
|
|
(highlight :CmpItemAbbr {:fg mod.colors.white :bg :NONE})
|
|
|
|
(highlight :CmpItemAbbrMatch {:fg mod.colors.cyan :bg :NONE :bold true})
|
|
|
|
(highlight :CmpItemAbbrMatchFuzzy
|
|
|
|
{:fg mod.colors.cyan :bg :NONE :bold true})
|
2023-12-12 19:05:42 +00:00
|
|
|
(highlight :CmpItemAbbrDeprecated
|
|
|
|
{:fg mod.colors.white :bg :NONE :strikethrough true})
|
2023-11-20 20:59:54 +00:00
|
|
|
(highlight :CmpItemMenu {:fg mod.colors.purple :bg :NONE :italic true})
|
|
|
|
(let [cmp-groups [:CmpItemKindField
|
|
|
|
:CmpItemKindProperty
|
|
|
|
:CmpItemKindEvent
|
|
|
|
:CmpItemKindText
|
|
|
|
:CmpItemKindEnum
|
|
|
|
:CmpItemKindKeyword
|
|
|
|
:CmpItemKindConstant
|
|
|
|
:CmpItemKindConstructor
|
|
|
|
:CmpItemKindReference
|
|
|
|
:CmpItemKindFunction
|
|
|
|
:CmpItemKindStruct
|
|
|
|
:CmpItemKindClass
|
|
|
|
:CmpItemKindModule
|
|
|
|
:CmpItemKindOperator
|
|
|
|
:CmpItemKindVariable
|
|
|
|
:CmpItemKindUnit
|
|
|
|
:CmpItemKindSnippet
|
|
|
|
:CmpItemKindFolder
|
|
|
|
:CmpItemKindMethod
|
|
|
|
:CmpItemKindValue
|
|
|
|
:CmpItemKindEnumMember
|
|
|
|
:CmpItemKindInterface
|
|
|
|
:CmpItemKindColor
|
|
|
|
:CmpItemKindTypeParameter]]
|
|
|
|
(each [_ group (pairs cmp-groups)]
|
2023-11-23 20:33:18 +00:00
|
|
|
(swap-bg-with-fg mod.colors.black group)))
|
2023-11-28 16:09:38 +00:00
|
|
|
(highlight :CmpItemKindFile {:fg mod.colors.black :bg mod.colors.white})
|
|
|
|
(highlight :CmpItemKindFolder {:fg mod.colors.black :bg mod.colors.white})
|
2023-11-23 20:33:18 +00:00
|
|
|
(highlight :CmpItemKindTabNine
|
2023-12-29 19:19:42 +00:00
|
|
|
{:fg mod.colors.black :bg mod.colors.bright_magenta})
|
|
|
|
;; neogit
|
|
|
|
(highlight :NeogitBranch {:fg mod.colors.green :bold true})
|
|
|
|
(highlight :NeogitBranchHead
|
|
|
|
{:fg mod.colors.green :bold true :underline true})
|
|
|
|
(highlight :NeogitRemote {:fg mod.colors.yellow :bold true})
|
|
|
|
(highlight :NeogitSectionHeader {:fg mod.colors.purple :bold true})
|
|
|
|
(let [neogit-groups-added [:NeogitChangeAdded :NeogitChangeNewFile]
|
|
|
|
neogit-groups-updated [:NeogitChangeModified
|
|
|
|
:NeogitChangeRenamed
|
|
|
|
:NeogitChangeUpdated
|
|
|
|
:NeogitChangeCopied
|
|
|
|
:NeogitChangeBothModified]
|
|
|
|
neogit-groups-deleted [:NeogitChangeDeleted]]
|
|
|
|
(each [_ group (pairs neogit-groups-added)]
|
|
|
|
(highlight group {:fg mod.colors.green :italic true}))
|
|
|
|
(each [_ group (pairs neogit-groups-updated)]
|
|
|
|
(highlight group {:fg mod.colors.yellow :italic true}))
|
|
|
|
(each [_ group (pairs neogit-groups-deleted)]
|
|
|
|
(highlight group {:fg mod.colors.red :italic true})))
|
|
|
|
(highlight :NeogitDiffAdd {:fg mod.colors.comment :bg mod.colors.green})
|
|
|
|
(highlight :NeogitDiffAddHighlight
|
|
|
|
{:fg mod.colors.black :bg mod.colors.bright_green})
|
|
|
|
(highlight :NeogitDiffDelete {:fg mod.colors.comment :bg mod.colors.red})
|
|
|
|
(highlight :NeogitDiffDeleteHighlight
|
|
|
|
{:fg mod.colors.black :bg mod.colors.bright_red})
|
2024-01-20 23:01:17 +00:00
|
|
|
(highlight :NeogitCursorLine {:fg mod.colors.fg :bg mod.colors.visual})
|
|
|
|
;; nvim-treesitter
|
|
|
|
(highlight-link "@variable.parameter" "@parameter")
|
|
|
|
(highlight-link "@variable.member" "@field")
|
|
|
|
(highlight-link "@module" "@namespace")
|
|
|
|
(highlight-link "@number.float" "@float")
|
|
|
|
(highlight-link "@string.special.symbol" "@symbol")
|
|
|
|
(highlight-link "@string.regexp" "@string.regex")
|
|
|
|
(highlight-link "@markup.strong" "@text.strong")
|
|
|
|
(highlight-link "@markup.italic" "@text.emphasis")
|
|
|
|
(highlight-link "@markup.underline" "@text.underline")
|
|
|
|
(highlight-link "@markup.strikethrough" "@text.strike")
|
|
|
|
(highlight-link "@markup.heading" "@text.title")
|
|
|
|
(highlight-link "@markup.quote" "@text.quote")
|
|
|
|
(highlight-link "@markup.link.url" "@text.uri")
|
|
|
|
(highlight-link "@markup.math" "@text.math")
|
|
|
|
(highlight-link "@markup.environment" "@text.environment")
|
|
|
|
(highlight-link "@markup.environment.name" "@text.environment.name")
|
|
|
|
(highlight-link "@markup.link" "@text.reference")
|
|
|
|
(highlight-link "@markup.raw" "@text.literal")
|
|
|
|
(highlight-link "@markup.raw.block" "@text.literal.block")
|
|
|
|
(highlight-link "@markup.link.label" "@string.special")
|
|
|
|
(highlight-link "@markup.list" "@punctuation.special")
|
|
|
|
(highlight-link "@function.method" "@method")
|
|
|
|
(highlight-link "@function.method.call" "@method.call")
|
|
|
|
(highlight-link "@comment.todo" "@text.todo")
|
|
|
|
(highlight-link "@comment.error" "@text.danger")
|
|
|
|
(highlight-link "@comment.warning" "@text.warning")
|
|
|
|
(highlight-link "@comment.hint" "@text.note")
|
|
|
|
(highlight-link "@comment.info" "@text.note")
|
|
|
|
(highlight-link "@comment.note" "@text.note")
|
|
|
|
(highlight-link "@comment.ok" "@text.note")
|
|
|
|
(highlight-link "@diff.plus" "@text.diff.add")
|
|
|
|
(highlight-link "@diff.minus" "@text.diff.delete")
|
|
|
|
(highlight-link "@diff.delta" "@text.diff.change")
|
|
|
|
(highlight-link "@string.special.url" "@text.uri")
|
|
|
|
(highlight-link "@keyword.directive" "@preproc")
|
|
|
|
(highlight-link "@keyword.storage" "@storageclass")
|
|
|
|
(highlight-link "@keyword.directive" "@define")
|
|
|
|
(highlight-link "@keyword.conditional" "@conditional")
|
|
|
|
(highlight-link "@keyword.debug" "@debug")
|
|
|
|
(highlight-link "@keyword.exception" "@exception")
|
|
|
|
(highlight-link "@keyword.import" "@include")
|
|
|
|
(highlight-link "@keyword.repeat" "@repeat"))
|
2022-04-16 22:24:03 +00:00
|
|
|
|
|
|
|
mod)
|