helm/home/profiles/nvim/config/fnl/conf/plugins.fnl

46 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

(local nvim (require :lib/nvim))
(local navic (require :nvim-navic))
(import-macros {: do-req } :lib/macros)
(let [lualine (require :lualine)]
(lualine.setup {:options {:theme "ayu"}
2024-08-27 19:45:20 -07:00
:sections {; :lualine_c [:filename (fn []
; (let [lspsaga (require :lspsaga.symbol.winbar)]
; (lspsaga.get_bar))
:lualine_y [(fn []
2024-08-27 19:18:33 -07:00
(var msg "No Active LSP")
(let [buf_ft (vim.api.nvim_buf_get_option 0 "filetype")
clients (vim.lsp.get_active_clients)]
(each [_ client (ipairs clients)]
(let [filetypes (. client :config :filetypes)]
(if (and filetypes (vim.fn.index filetypes buf_ft)) (set msg client.name))))
msg))]
:lualine_x [:filetype]}}))
(require :neo-tree)
(do-req :gitsigns :setup)
(do-req :marks :setup)
2024-08-27 19:18:33 -07:00
; (do-req :mini.pairs :setup)
(do-req :mini.diff :setup)
(do-req :mini.ai :setup)
2024-08-27 19:18:33 -07:00
(do-req :mini.surround :setup {:mappings {:add "ys"
:delete "ds"
:replace "cs"}})
(do-req :todo-comments :setup)
2024-08-27 19:45:20 -07:00
(do-req :ibl :setup {:scope {:exclude {:language ["fennel" "clojure" "janet"]}}})
(do-req :nvim-treesitter.configs :setup {:highlight {:enable true}
:textobjects {:enable true}
:indent {:enable true}})
(do-req :treesitter-context :setup {:max_lines 5})
(do-req :auto-session :setup {:log_level "info"
:auto_session_suppress_dirs ["~/"]})
(nvim.opt :sessionoptions "blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal")
2024-08-27 19:18:33 -07:00
(do-req :aerial :setup {}) ;{:on_attach (fn [bufnr]
; (do
; (vim.keymap.set "n" "{" "<cmd>AerialPrev<CR>" { :buffer bufnr})
; (vim.keymap.set "n" "}" "<cmd>AerialNext<CR>" { :buffer bufnr}))