mirror of https://github.com/LazyVim/starter
feat(blink.cmp): enable for Lua filetype
parent
27663b8ed6
commit
08fae0942e
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"suggest.enableFloat": false,
|
||||
"suggest.enableFloat": true,
|
||||
"diagnostic.enable": false,
|
||||
"inlayHint.enable": false,
|
||||
"codeLens.enable": true,
|
||||
|
|
|
@ -55,7 +55,8 @@ keyset("n", "<leader>rn", "<Plug>(coc-rename)", { desc = "Coc: Rename" })
|
|||
keyset("v", "\\r", "<Plug>(coc-codeaction-refactor-selected)", { desc = "Coc: Refactor Selected" })
|
||||
keyset("n", "\\cl", "<Plug>(coc-codelens-action)", { desc = "Coc: CodeLens Action" })
|
||||
-- Resolve Coc conflicting keymaps
|
||||
keyset("i", "<C-e>", "<End>", { desc = "Goto end" })
|
||||
-- TODO: recover this
|
||||
keyset("i", "<C-e>", "<C-o>$", { desc = "Goto end" })
|
||||
|
||||
-- Now configure shortcuts for MacOS
|
||||
-- if vim.g.neovide then
|
||||
|
|
|
@ -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
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue