use nvim tree

This commit is contained in:
nganhkhoa 2021-08-06 11:15:50 +07:00
parent f4a4639198
commit 4ad65024f6
2 changed files with 6 additions and 12 deletions

View File

@ -10,15 +10,16 @@
(use :projekt0n/github-nvim-theme) (use :projekt0n/github-nvim-theme)
; ui ; ui
(use {1 :hoob3rt/lualine.nvim (use :kyazdani42/nvim-web-devicons)
:requires {1 :kyazdani42/nvim-web-devicons :opt true}}) (use :hoob3rt/lualine.nvim)
(use :junegunn/goyo.vim) (use :junegunn/goyo.vim)
(use :lukas-reineke/indent-blankline.nvim) (use :lukas-reineke/indent-blankline.nvim)
(use :ntpeters/vim-better-whitespace) (use :ntpeters/vim-better-whitespace)
(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

@ -9,15 +9,8 @@
;; buffergator ;; buffergator
(set nvim.g.buffergator_display_regime "parentdir") (set nvim.g.buffergator_display_regime "parentdir")
;; vaffle ;; nvim tree
(defn open-vaffle [] (nvim.set_keymap :n :<leader>dd ":NvimTreeFindFile<CR>" {:noremap true :silent true})
(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})