diff --git a/config/nvim/fnl/plugins/editor.fnl b/config/nvim/fnl/plugins/editor.fnl index 4a4ab5b..89dcce7 100644 --- a/config/nvim/fnl/plugins/editor.fnl +++ b/config/nvim/fnl/plugins/editor.fnl @@ -91,6 +91,17 @@ (fn statusline.section_location [] "%2l:%-2v"))}) +(local autopairs {1 :windwp/nvim-autopairs + :config (fn [] + ((. (require :nvim-autopairs) :setup) {}) + (local cmp-autopairs + (require :nvim-autopairs.completion.cmp)) + (local cmp (require :cmp)) + (cmp.event:on :confirm_done + (cmp-autopairs.on_confirm_done))) + :dependencies [:hrsh7th/nvim-cmp] + :event :InsertEnter}) + [ blankline emmet @@ -99,4 +110,5 @@ comments mini "tpope/vim-sleuth" ; Detect tabstop and shiftwidth automatically + autopairs ] diff --git a/config/nvim/fnl/plugins/neotree.fnl b/config/nvim/fnl/plugins/neotree.fnl new file mode 100644 index 0000000..cb82575 --- /dev/null +++ b/config/nvim/fnl/plugins/neotree.fnl @@ -0,0 +1,13 @@ +(local neotree {1 :nvim-neo-tree/neo-tree.nvim + :cmd :Neotree + :dependencies [:nvim-lua/plenary.nvim + :nvim-tree/nvim-web-devicons + :MunifTanjim/nui.nvim] + :keys [{1 "\\" + 2 ":Neotree reveal" + :desc "NeoTree reveal" + :silent true}] + :opts {:filesystem {:window {:mappings {"\\" :close_window}}}} + :version "*"}) + +[neotree]