nvim: smartcase and change keys
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
vim.pack.add({ "https://github.com/chrisgrieser/nvim-various-textobjs" })
|
||||
|
||||
local ok, oil = pcall(require, "various-textobjs")
|
||||
local ok, vto = pcall(require, "various-textobjs")
|
||||
if ok then
|
||||
oil.setup({ keymaps = { useDefaults = true } })
|
||||
vto.setup({ keymaps = { useDefaults = true, diabledDefaults = { 'r' } } })
|
||||
vim.keymap.set({ 'o', 'x' }, ' }', vto.restOfParagraph)
|
||||
else
|
||||
print("plugin nvim-various-textobjs missing")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user