use surround.nvim

This commit is contained in:
nganhkhoa 2021-12-07 15:21:37 +00:00
parent 8d3952ec91
commit 60b783b822
2 changed files with 7 additions and 2 deletions

View File

@ -21,8 +21,7 @@
(use :cocopon/vaffle.vim) (use :cocopon/vaffle.vim)
(use :jeetsukumaran/vim-buffergator) (use :jeetsukumaran/vim-buffergator)
(use :tpope/vim-fugitive) (use :tpope/vim-fugitive)
(use :kana/vim-operator-user) (use :blackCauldron7/surround.nvim)
(use :rhysd/vim-operator-surround)
(use :chaoren/vim-wordmotion) (use :chaoren/vim-wordmotion)
(use :b3nj5m1n/kommentary) (use :b3nj5m1n/kommentary)
(use :nelstrom/vim-visual-star-search) (use :nelstrom/vim-visual-star-search)

View File

@ -24,6 +24,12 @@
(nvim.set_keymap "" :sd "<Plug>(operator-surround-delete)" {:silent true}) (nvim.set_keymap "" :sd "<Plug>(operator-surround-delete)" {:silent true})
(nvim.set_keymap "" :sr "<Plug>(operator-surround-replace)" {:silent true}) (nvim.set_keymap "" :sr "<Plug>(operator-surround-replace)" {:silent true})
;; surround.nvim
(global surround (require :surround))
(surround.setup
{:mappings_style "sandwich"
})
;; kommentary ;; kommentary
(global kommentary (require :kommentary.config)) (global kommentary (require :kommentary.config))
(kommentary.configure_language :default {:prefer_single_line_comments true}) (kommentary.configure_language :default {:prefer_single_line_comments true})