diff --git a/coc-settings.json b/coc-settings.json index 1731a57..484cb4a 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -1,5 +1,5 @@ { - "suggest.enableFloat": false, + "suggest.enableFloat": true, "diagnostic.enable": false, "inlayHint.enable": false, "codeLens.enable": true, diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index a7abb87..5e33c6d 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -55,7 +55,8 @@ keyset("n", "rn", "(coc-rename)", { desc = "Coc: Rename" }) keyset("v", "\\r", "(coc-codeaction-refactor-selected)", { desc = "Coc: Refactor Selected" }) keyset("n", "\\cl", "(coc-codelens-action)", { desc = "Coc: CodeLens Action" }) -- Resolve Coc conflicting keymaps -keyset("i", "", "", { desc = "Goto end" }) +-- TODO: recover this +keyset("i", "", "$", { desc = "Goto end" }) -- Now configure shortcuts for MacOS -- if vim.g.neovide then diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index b766aa5..5e2c0b0 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -93,6 +93,7 @@ return { }, { "neoclide/coc.nvim", + branch = "release", }, { @@ -273,15 +274,16 @@ return { "Saghen/blink.cmp", opts = { enabled = function() + -- Enable if the filetype is Lua + if vim.bo.filetype == "lua" then + return true + end -- Enable when there is no file ~/.config/nvim-options/blink-disabled local path = vim.fn.stdpath("config") .. "/blink-disabled" return not vim.loop.fs_stat(path) end, }, }, - { - "giuxtaposition/blink-cmp-copilot", - }, } -- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim --