From 98e18435c7967d8550256489e72d042cfeb970d4 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Sun, 29 Oct 2023 00:25:41 +0700 Subject: [PATCH] chore(nvim): revision again --- data/nvim/init.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 9faff4e..4a8d7bb 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -160,7 +160,7 @@ require("lazy").setup({ vim.cmd("colorscheme caret") end, - enabled = false, + enabled = true, }, -- https://github.com/folke/tokyonight.nvim @@ -181,7 +181,7 @@ require("lazy").setup({ vim.cmd("colorscheme tokyonight") end, - enabled = true, + enabled = false, }, { @@ -241,6 +241,7 @@ require("lazy").setup({ vim.keymap.set("n", "d", ":FzfLua lsp_definitions") vim.keymap.set("n", "r", ":FzfLua lsp_references") vim.keymap.set("n", "i", ":FzfLua lsp_implementations") + vim.keymap.set("n", "ca", ":FzfLua lsp_code_actions") end, }, @@ -436,6 +437,9 @@ require("lazy").setup({ -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-cursorword.md require("mini.cursorword").setup() + -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-pairs.md + require("mini.pairs").setup() + -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-statusline.md require("mini.statusline").setup({ use_icons = false, @@ -555,10 +559,6 @@ require("lazy").setup({ vim.keymap.set("n", "f", function() vim.lsp.buf.format({ async = true }) end, opts) - vim.keymap.set("n", "ca", vim.lsp.buf.code_action, opts) - vim.keymap.set("n", "ci", function() - vim.lsp.buf.code_action({ context = { only = { "source.organizeImports" } }, apply = true }) - end, opts) end, }) end,