nvim-config/fnl/settings.fnl

48 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-04-04 23:18:26 +07:00
(module user.plugin.settings
{require {nvim aniseed.nvim
nu aniseed.nvim.util}})
2021-07-10 04:05:30 +07:00
;; theme
(global github-theme (require :github-theme))
(github-theme.setup {:theme_style :dark})
2021-07-10 04:05:30 +07:00
2021-04-04 23:18:26 +07:00
;; buffergator
(set nvim.g.buffergator_display_regime "parentdir")
2021-08-06 11:15:50 +07:00
;; nvim tree
(nvim.set_keymap :n :<leader>dd ":NvimTreeFindFile<CR>" {:noremap true :silent true})
2021-04-04 23:18:26 +07:00
;; vim-operator-surround
(nvim.set_keymap "" :sa "<Plug>(operator-surround-append)" {:silent true})
(nvim.set_keymap "" :sd "<Plug>(operator-surround-delete)" {:silent true})
(nvim.set_keymap "" :sr "<Plug>(operator-surround-replace)" {:silent true})
2021-04-20 17:45:34 +07:00
2021-07-10 04:05:30 +07:00
;; kommentary
(global kommentary (require :kommentary.config))
(kommentary.configure_language :default {:prefer_single_line_comments true})
(kommentary.configure_language :objcpp {:prefer_single_line_comments true})
;; lualine
(global lualine (require :lualine))
(lualine.setup
{:options {:theme :nightfly
:section_separators ["" ""]
:component_separators ["" ""]
:icons_enabled true}
:sections {:lualine_a {1 {1 :mode
:upper true}}
:lualine_b {1 {1 :branch
:icon ""}}
:lualine_c {1 {1 :filename
:file_status true}}
:lualine_x ["encoding" "fileformat" "filetype"]
:lualine_y ["progress"]
:lualine_z ["location"]}
:inactive_sections {:lualine_a {}
:lualine_b {}
:lualine_c ["filename"]
:lualine_x ["location"]
:lualine_y {}
:lualine_z {}}
:extensions ["fugitive"]})