config(nvim): add map `(`, `)`

main
sudo pacman -Syu 2024-06-24 15:48:14 +07:00
parent 43d508eed9
commit f1dece8449
1 changed files with 9 additions and 0 deletions

View File

@ -71,6 +71,10 @@ vim.keymap.set({ "n", "v" }, "q:", "<Nop>")
vim.keymap.set({ "n", "v" }, "(", "<Nop>") vim.keymap.set({ "n", "v" }, "(", "<Nop>")
vim.keymap.set({ "n", "v" }, ")", "<Nop>") vim.keymap.set({ "n", "v" }, ")", "<Nop>")
-- My Sofle V2 do not have map `[`, `]` directly
vim.keymap.set("n", ")d", "]d", { remap = true })
vim.keymap.set("n", "(d", "[d", { remap = true })
-- Disable scrolling -- Disable scrolling
-- https://neovim.io/doc/user/scroll.html -- https://neovim.io/doc/user/scroll.html
vim.keymap.set({ "n", "v" }, "<C-e>", "<Nop>") vim.keymap.set({ "n", "v" }, "<C-e>", "<Nop>")
@ -180,6 +184,7 @@ require("lazy").setup({
{ "<Space>i", ":FzfLua lsp_implementations<CR>" }, { "<Space>i", ":FzfLua lsp_implementations<CR>" },
{ "gi", ":FzfLua lsp_implementations<CR>" }, { "gi", ":FzfLua lsp_implementations<CR>" },
{ "<Space>ca", ":FzfLua lsp_code_actions previewer=false<CR>" }, { "<Space>ca", ":FzfLua lsp_code_actions previewer=false<CR>" },
{ "<Space>d", ":FzfLua diagnostics_document<CR>" },
}, },
dependencies = { dependencies = {
"neovim/nvim-lspconfig", "neovim/nvim-lspconfig",
@ -350,6 +355,10 @@ require("lazy").setup({
}, },
}) })
-- Sofle V2
vim.keymap.set("n", ")c", "]c", { remap = true })
vim.keymap.set("n", "(c", "[c", { remap = true })
-- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-git.md -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-git.md
require("mini.git").setup() require("mini.git").setup()