diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 6c9725d..1dab183 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -71,6 +71,10 @@ vim.keymap.set({ "n", "v" }, "q:", "") vim.keymap.set({ "n", "v" }, "(", "") vim.keymap.set({ "n", "v" }, ")", "") +-- 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 -- https://neovim.io/doc/user/scroll.html vim.keymap.set({ "n", "v" }, "", "") @@ -180,6 +184,7 @@ require("lazy").setup({ { "i", ":FzfLua lsp_implementations" }, { "gi", ":FzfLua lsp_implementations" }, { "ca", ":FzfLua lsp_code_actions previewer=false" }, + { "d", ":FzfLua diagnostics_document" }, }, dependencies = { "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 require("mini.git").setup()