nvim: smartcase and change keys

This commit is contained in:
2026-02-28 19:02:39 +01:00
parent 85395280ba
commit 3e79476b5d
3 changed files with 7 additions and 3 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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