2024-08-25 00:46:03 -07:00
|
|
|
(local nvim (require :lib/nvim))
|
|
|
|
(local navic (require :nvim-navic))
|
|
|
|
|
2024-08-26 23:09:08 -07:00
|
|
|
(import-macros {: do-req } :lib/macros)
|
|
|
|
|
2024-08-25 00:46:03 -07:00
|
|
|
(let [lualine (require :lualine)]
|
|
|
|
(lualine.setup {:options {:theme "ayu"}
|
2024-08-27 19:18:33 -07:00
|
|
|
:sections {:lualine_c [:filename (fn []
|
|
|
|
(let [lspsaga (require :lspsaga.symbol.winbar)]
|
|
|
|
(lspsaga.get_bar)))]
|
2024-08-25 00:46:03 -07:00
|
|
|
: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))]
|
2024-08-25 00:46:03 -07:00
|
|
|
:lualine_x [:filetype]}}))
|
|
|
|
|
|
|
|
(require :neo-tree)
|
2024-08-26 23:09:08 -07:00
|
|
|
(do-req :gitsigns :setup)
|
|
|
|
(do-req :marks :setup)
|
2024-08-27 19:18:33 -07:00
|
|
|
; (do-req :mini.pairs :setup)
|
2024-08-26 23:09:08 -07:00
|
|
|
(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"}})
|
2024-08-26 23:09:08 -07:00
|
|
|
(do-req :todo-comments :setup)
|
2024-08-27 19:18:33 -07:00
|
|
|
(do-req :ibl :setup {:exclude {:language ["fennel" "clojure" "janet"]}})
|
2024-08-26 23:09:08 -07:00
|
|
|
|
|
|
|
(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}))
|