feat(coc-settings): add initial coc.nvim configuration

pull/128/head
flin16 2025-06-03 18:54:28 -05:00
parent 4d37508865
commit d18582341e
4 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,6 @@
{
"suggest.enableFloat": false,
"diagnostic.enable": false,
"inlayHint.enable": false,
"codeLens.enable": true,
}

View File

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

View File

@ -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", "<leader>rn", "<Plug>(coc-rename)", { desc = "Coc: Rename" })
vim.keymap.set("v", "\\r", "<Plug>(coc-codeaction-refactor-selected)", { desc = "Coc: Refactor Selected" })
vim.keymap.set("n", "\\cl", "<Plug>(coc-codelens-action)", { desc = "Coc: CodeLens Action" })
-- Now configure shortcuts for MacOS
-- if vim.g.neovide then
map_all_mode("<D-s>", '<Cmd>w<CR>') -- Save
@ -57,7 +63,7 @@ end, { desc = "Close current tab" })
map_all_mode("<D-z>", function() vim.cmd("undo") end)
vim.keymap.set("i", "<D-v>", '<C-O>"+P')
vim.keymap.set("c", "<D-v>", "<C-R>+")
vim.keymap.set("n", "<D-v>", '"+P', { desc = "Paste from clipboard" })
vim.keymap.set("n", "<D-v>", '"+p', { desc = "Paste from clipboard" })
vim.keymap.set("v", "<D-v>", '"_d"+gP', { desc = "Remove the selected part and paste from system clipboard." })
vim.keymap.set("v", "<D-c>", '"+y', { desc = "Copy to clipboard in visual mode" })
vim.keymap.set("v", "<D-x>", '"+d', { desc = "Cut to clipboard" })

View File

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