nvim: smartcase and change keys
This commit is contained in:
@@ -8,6 +8,9 @@ vim.opt.relativenumber = true
|
|||||||
vim.opt.signcolumn = "yes"
|
vim.opt.signcolumn = "yes"
|
||||||
vim.opt.title = true
|
vim.opt.title = true
|
||||||
|
|
||||||
|
vim.opt.ignorecase = true
|
||||||
|
vim.opt.smartcase = true
|
||||||
|
|
||||||
vim.opt.timeout = false
|
vim.opt.timeout = false
|
||||||
|
|
||||||
vim.o.undofile = true
|
vim.o.undofile = true
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ if ok then
|
|||||||
|
|
||||||
local set = vim.keymap.set
|
local set = vim.keymap.set
|
||||||
|
|
||||||
set({ "n", "x", "o" }, "\\", function()
|
set({ "n", "x", "o" }, "<leader><space>", function()
|
||||||
require("flash").jump()
|
require("flash").jump()
|
||||||
end, { desc = "Flash" })
|
end, { desc = "Flash" })
|
||||||
set({ "n", "x", "o" }, "=", function()
|
set({ "n", "x", "o" }, "=", function()
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
vim.pack.add({ "https://github.com/chrisgrieser/nvim-various-textobjs" })
|
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
|
if ok then
|
||||||
oil.setup({ keymaps = { useDefaults = true } })
|
vto.setup({ keymaps = { useDefaults = true, diabledDefaults = { 'r' } } })
|
||||||
|
vim.keymap.set({ 'o', 'x' }, ' }', vto.restOfParagraph)
|
||||||
else
|
else
|
||||||
print("plugin nvim-various-textobjs missing")
|
print("plugin nvim-various-textobjs missing")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user