use vaffle | bench nvim-tree

This commit is contained in:
nganhkhoa 2021-10-11 04:22:15 +00:00
parent e3ed38ab86
commit a9e30eb2f6
2 changed files with 9 additions and 3 deletions

View File

@ -18,8 +18,7 @@
(use :valloric/matchtagalways) (use :valloric/matchtagalways)
; util ; util
; (use :cocopon/vaffle.vim) (use :cocopon/vaffle.vim)
(use :kyazdani42/nvim-tree.lua)
(use :jeetsukumaran/vim-buffergator) (use :jeetsukumaran/vim-buffergator)
(use :tpope/vim-fugitive) (use :tpope/vim-fugitive)
(use :kana/vim-operator-user) (use :kana/vim-operator-user)

View File

@ -10,7 +10,14 @@
(set nvim.g.buffergator_display_regime "parentdir") (set nvim.g.buffergator_display_regime "parentdir")
;; nvim tree ;; nvim tree
(nvim.set_keymap :n :<leader>dd ":NvimTreeFindFile<CR>" {:noremap true :silent true}) (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})
;; vim-operator-surround ;; vim-operator-surround
(nvim.set_keymap "" :sa "<Plug>(operator-surround-append)" {:silent true}) (nvim.set_keymap "" :sa "<Plug>(operator-surround-append)" {:silent true})