nvim: plugins: Switch to nvim-various-textobjs
We never really used the comment text object and functionality of the other two are provided in nvim-various-textobjs.
This commit is contained in:
parent
20066f99c7
commit
c800b66cbf
3 changed files with 9 additions and 14 deletions
8
nvim/.config/nvim/after/plugin/various-textobjs.lua
Normal file
8
nvim/.config/nvim/after/plugin/various-textobjs.lua
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
require("various-textobjs").setup({ useDefaultKeymaps = false })
|
||||||
|
|
||||||
|
vim.keymap.set({"o", "x"}, "ae", function () require("various-textobjs").entireBuffer() end)
|
||||||
|
vim.keymap.set({"o", "x"}, "ii", function () require("various-textobjs").indentation(true, true) end)
|
||||||
|
vim.keymap.set({"o", "x"}, "ai", function () require("various-textobjs").indentation(false, true) end)
|
||||||
|
vim.keymap.set({"o", "x"}, "as", function () require("various-textobjs").subword(false) end)
|
||||||
|
vim.keymap.set({"o", "x"}, "is", function () require("various-textobjs").subword(true) end)
|
||||||
|
vim.keymap.set({"o", "x"}, "?" , function () require("various-textobjs").toNextClosingBracket() end)
|
|
@ -1,10 +0,0 @@
|
||||||
call textobj#user#map('wordcolumn', {
|
|
||||||
\ 'word' : {
|
|
||||||
\ 'select-i' : 'is',
|
|
||||||
\ 'select-a' : 'as',
|
|
||||||
\ },
|
|
||||||
\ 'WORD' : {
|
|
||||||
\ 'select-i' : 'iS',
|
|
||||||
\ 'select-a' : 'aS',
|
|
||||||
\ },
|
|
||||||
\ })
|
|
|
@ -14,10 +14,7 @@ require "paq" {
|
||||||
'https://gitlab.com/yorickpeterse/nvim-pqf',
|
'https://gitlab.com/yorickpeterse/nvim-pqf',
|
||||||
'wellle/targets.vim' ,
|
'wellle/targets.vim' ,
|
||||||
'tpope/vim-surround' ,
|
'tpope/vim-surround' ,
|
||||||
'chaoren/vim-wordmotion' ,
|
'chrisgrieser/nvim-various-textobjs' ,
|
||||||
'kana/vim-textobj-user' ,
|
|
||||||
'idbrii/textobj-word-column.vim' ,
|
|
||||||
'glts/vim-textobj-comment' ,
|
|
||||||
'numToStr/Comment.nvim' ,
|
'numToStr/Comment.nvim' ,
|
||||||
'tpope/vim-repeat' ,
|
'tpope/vim-repeat' ,
|
||||||
'tpope/vim-sleuth' ,
|
'tpope/vim-sleuth' ,
|
||||||
|
|
Loading…
Reference in a new issue