nvim: smartcase and change keys
This commit is contained in:
@@ -8,6 +8,9 @@ vim.opt.relativenumber = true
|
||||
vim.opt.signcolumn = "yes"
|
||||
vim.opt.title = true
|
||||
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
|
||||
vim.opt.timeout = false
|
||||
|
||||
vim.o.undofile = true
|
||||
|
||||
@@ -13,7 +13,7 @@ if ok then
|
||||
|
||||
local set = vim.keymap.set
|
||||
|
||||
set({ "n", "x", "o" }, "\\", function()
|
||||
set({ "n", "x", "o" }, "<leader><space>", function()
|
||||
require("flash").jump()
|
||||
end, { desc = "Flash" })
|
||||
set({ "n", "x", "o" }, "=", function()
|
||||
|
||||
@@ -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