2021-04-03 14:14:56 +00:00
|
|
|
(module init
|
2021-04-02 17:54:14 +00:00
|
|
|
{require {a aniseed.core
|
2021-04-03 14:14:56 +00:00
|
|
|
fennel aniseed.fennel
|
|
|
|
nvim aniseed.nvim
|
|
|
|
kb keybinds
|
2021-04-03 18:34:15 +00:00
|
|
|
utils utils
|
|
|
|
gl plugins.galaxyline
|
|
|
|
lsp plugins.lsp}
|
2021-04-03 14:14:56 +00:00
|
|
|
require-macros [macros]})
|
2021-04-03 18:34:15 +00:00
|
|
|
|
2021-04-03 14:14:56 +00:00
|
|
|
|
|
|
|
(global pp
|
|
|
|
(fn [x]
|
|
|
|
(print (fennel.view x))))
|
2021-04-02 17:54:14 +00:00
|
|
|
|
|
|
|
(set nvim.g.conjure#client#fennel#aniseed#aniseed_module_prefix "aniseed.")
|
|
|
|
|
|
|
|
|
2021-04-03 17:43:27 +00:00
|
|
|
|
2021-04-03 19:21:12 +00:00
|
|
|
(local colors (utils.colors))
|
2021-04-03 18:34:15 +00:00
|
|
|
(local bufferline (require "bufferline"))
|
|
|
|
|
|
|
|
; :h bufferline-lua-highlights
|
|
|
|
(let [selected { :guibg colors.neutral_aqua :guifg colors.dark0 :gui ""}
|
|
|
|
visible { :guibg colors.dark1 :guifg colors.neutral_aqua :gui ""}]
|
|
|
|
(bufferline.setup
|
|
|
|
{ :options
|
|
|
|
{ :diagnostics "nvim_lsp"
|
|
|
|
:diagnostics_indicator (fn [cnt lvl diagnostics-dict] (.. " (" cnt ")"))
|
|
|
|
:show_buffer_close_icons false
|
|
|
|
:show_close_icon false
|
|
|
|
:show_tab_indicators false
|
|
|
|
:enforce_regular_tabs false
|
|
|
|
:tab_size 10}
|
|
|
|
|
|
|
|
:highlights
|
|
|
|
{ :fill { :guibg colors.dark0 :guifg colors.light0}
|
|
|
|
:background visible
|
|
|
|
:buffer_visible visible
|
|
|
|
:buffer_selected selected
|
|
|
|
:modified visible
|
|
|
|
:modified_visible visible
|
|
|
|
:modified_selected selected
|
|
|
|
:error visible
|
|
|
|
:error_selected selected
|
|
|
|
:error_visible visible
|
|
|
|
:warning visible
|
|
|
|
:warning_selected selected
|
|
|
|
:warning_visible visible
|
|
|
|
:separator visible
|
|
|
|
:indicator_selected {:guibg colors.neutral_aqua :guifg colors.neutral_aqua}}}))
|