2022-04-16 22:24:03 +00:00
|
|
|
(let [mod {}
|
|
|
|
o vim.opt
|
|
|
|
g vim.g
|
2022-05-01 19:52:10 +00:00
|
|
|
cmd vim.cmd
|
|
|
|
dracula (require :dracula)
|
|
|
|
dracula-colors (dracula.colors)
|
|
|
|
highlight (partial vim.api.nvim_set_hl 0)]
|
2022-05-04 13:03:25 +00:00
|
|
|
(fn highlight-link [src dst]
|
|
|
|
(let [cmd-str (.. "highlight link " src " " dst)]
|
|
|
|
(cmd cmd-str)))
|
|
|
|
|
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-01 19:52:10 +00:00
|
|
|
(cmd "colorscheme dracula")
|
2022-05-04 13:03:25 +00:00
|
|
|
;; vim-matchup
|
2022-05-01 19:52:10 +00:00
|
|
|
(highlight :MatchParen {:fg dracula-colors.orange :bold true :italic true})
|
|
|
|
(highlight :MatchWord {:italic true})
|
2022-05-04 13:03:25 +00:00
|
|
|
(highlight-link :MatchupVirtualText :Comment)
|
|
|
|
;; nvim-ts-rainbow
|
|
|
|
(highlight :rainbowcol1 {:fg dracula-colors.bright_red})
|
|
|
|
(highlight :rainbowcol2 {:fg dracula-colors.bright_yellow})
|
|
|
|
(highlight :rainbowcol3 {:fg dracula-colors.bright_blue})
|
|
|
|
(highlight :rainbowcol4 {:fg dracula-colors.bright_green})
|
|
|
|
(highlight :rainbowcol5 {:fg dracula-colors.bright_magenta})
|
|
|
|
(highlight :rainbowcol6 {:fg dracula-colors.bright_cyan})
|
|
|
|
(highlight :rainbowcol7 {:fg dracula-colors.bright_white}))
|
2022-04-16 22:24:03 +00:00
|
|
|
|
|
|
|
mod)
|
2022-05-01 19:52:10 +00:00
|
|
|
|