diff --git a/coc-settings.json b/coc-settings.json new file mode 100644 index 0000000..1731a57 --- /dev/null +++ b/coc-settings.json @@ -0,0 +1,6 @@ +{ + "suggest.enableFloat": false, + "diagnostic.enable": false, + "inlayHint.enable": false, + "codeLens.enable": true, +} diff --git a/lazy-lock.json b/lazy-lock.json index 1d1b10b..2a0bddc 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -4,6 +4,7 @@ "blink.cmp": { "branch": "main", "commit": "022521a8910a5543b0251b21c9e1a1e989745796" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, "catppuccin": { "branch": "main", "commit": "56a9dfd1e05868cf3189369aad87242941396563" }, + "coc.nvim": { "branch": "master", "commit": "e9bfb0fbe4afd61f622f74c8527853ab8752f67c" }, "conform.nvim": { "branch": "master", "commit": "6feb2f28f9a9385e401857b21eeac3c1b66dd628" }, "copilot.vim": { "branch": "release", "commit": "d1e8429bef7f7709586886b0a23a46fbecc685c4" }, "flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" }, @@ -51,7 +52,7 @@ "ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" }, "undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" }, "venv-selector.nvim": { "branch": "regexp", "commit": "c677caa1030808a9f90092e522de7cc20c1390dd" }, - "vim-overleaf": { "branch": "main", "commit": "4a173667a4edcaa595711dcaeb424b775506af8a" }, + "vim-overleaf": { "branch": "main", "commit": "c036a8c9608323483a0ced2560f8479405ee7aa5" }, "vimtex": { "branch": "master", "commit": "08760834ce04903deb6f8760e61c11cf6f6b2f89" }, "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }, "yanky.nvim": { "branch": "main", "commit": "04775cc6e10ef038c397c407bc17f00a2f52b378" } diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index c3e591b..33cf3f4 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -45,6 +45,12 @@ vim.keymap.set({ "n", "v" }, "\\dp", function() require("dap.ui.widgets").preview() end, { desc = "Print variable (Preview Mode)" }) +-- Configure Coc.nvim keymaps +vim.keymap.set("n", "rn", "(coc-rename)", { desc = "Coc: Rename" }) + +vim.keymap.set("v", "\\r", "(coc-codeaction-refactor-selected)", { desc = "Coc: Refactor Selected" }) +vim.keymap.set("n", "\\cl", "(coc-codelens-action)", { desc = "Coc: CodeLens Action" }) + -- Now configure shortcuts for MacOS -- if vim.g.neovide then map_all_mode("", 'w') -- Save @@ -57,7 +63,7 @@ end, { desc = "Close current tab" }) map_all_mode("", function() vim.cmd("undo") end) vim.keymap.set("i", "", '"+P') vim.keymap.set("c", "", "+") -vim.keymap.set("n", "", '"+P', { desc = "Paste from clipboard" }) +vim.keymap.set("n", "", '"+p', { desc = "Paste from clipboard" }) vim.keymap.set("v", "", '"_d"+gP', { desc = "Remove the selected part and paste from system clipboard." }) vim.keymap.set("v", "", '"+y', { desc = "Copy to clipboard in visual mode" }) vim.keymap.set("v", "", '"+d', { desc = "Cut to clipboard" }) diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index d98ef6e..34ad97b 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -91,6 +91,10 @@ return { }, } }, + { + "neoclide/coc.nvim", + branch = "release", + }, { "mfussenegger/nvim-dap-python", ft = "python", @@ -133,6 +137,7 @@ return { exclude = excluded_list, }, explorer = { + ignored = true, exclude = excluded_list, } },