nvim-config/fnl/settings.fnl

64 lines
2.0 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}})
2024-03-16 21:34:25 +07:00
(nvim.ex.autocmd "BufRead * DetectIndent")
2021-07-10 04:05:30 +07:00
;; theme
2022-02-15 13:09:05 +07:00
; (global github-theme (require :github-theme))
; (github-theme.setup {:theme_style :dark})
(nvim.command "colorscheme aquarium")
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-12-14 22:14:45 +07:00
;; Vaffle
2021-10-11 11:22:15 +07:00
(defn open-vaffle []
(let [bufname (nvim.fn.bufname "%")]
(if (= bufname "")
(nvim.fn.vaffle#init)
(nvim.fn.vaffle#init (nvim.fn.expand "%:p")))))
(nu.fn-bridge :OpenVaffle :user.plugin.settings :open-vaffle)
(nvim.set_keymap :n :<leader>dd ":call OpenVaffle()<CR>" {:noremap true :silent true})
2021-04-04 23:18:26 +07:00
2024-03-07 11:09:43 +07:00
;; fzf
(nvim.set_keymap :n :<leader>ff ":lua require('fzf-lua').live_grep()<CR>" {:noremap true :silent true})
2021-12-07 22:21:37 +07:00
;; surround.nvim
(global surround (require :surround))
(surround.setup
{:mappings_style "sandwich"
})
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
2022-02-15 13:09:05 +07:00
{:options {:theme :aquarium
2021-07-10 04:05:30 +07:00
: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}}
2024-03-16 21:34:25 +07:00
:lualine_x ["%{&expandtab?shiftwidth().\"sp\":\"tabs\"}" "encoding" "fileformat" "filetype"]
2021-07-10 04:05:30 +07:00
:lualine_y ["progress"]
:lualine_z ["location"]}
:inactive_sections {:lualine_a {}
:lualine_b {}
:lualine_c ["filename"]
:lualine_x ["location"]
:lualine_y {}
:lualine_z {}}
:extensions ["fugitive"]})