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,
|
"diagnostic.enable": false,
|
||||||
"inlayHint.enable": false,
|
"inlayHint.enable": false,
|
||||||
"codeLens.enable": true,
|
"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("v", "\\r", "<Plug>(coc-codeaction-refactor-selected)", { desc = "Coc: Refactor Selected" })
|
||||||
keyset("n", "\\cl", "<Plug>(coc-codelens-action)", { desc = "Coc: CodeLens Action" })
|
keyset("n", "\\cl", "<Plug>(coc-codelens-action)", { desc = "Coc: CodeLens Action" })
|
||||||
-- Resolve Coc conflicting keymaps
|
-- 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
|
-- Now configure shortcuts for MacOS
|
||||||
-- if vim.g.neovide then
|
-- if vim.g.neovide then
|
||||||
|
|
|
@ -93,6 +93,7 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neoclide/coc.nvim",
|
"neoclide/coc.nvim",
|
||||||
|
|
||||||
branch = "release",
|
branch = "release",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -273,15 +274,16 @@ return {
|
||||||
"Saghen/blink.cmp",
|
"Saghen/blink.cmp",
|
||||||
opts = {
|
opts = {
|
||||||
enabled = function()
|
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
|
-- Enable when there is no file ~/.config/nvim-options/blink-disabled
|
||||||
local path = vim.fn.stdpath("config") .. "/blink-disabled"
|
local path = vim.fn.stdpath("config") .. "/blink-disabled"
|
||||||
return not vim.loop.fs_stat(path)
|
return not vim.loop.fs_stat(path)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"giuxtaposition/blink-cmp-copilot",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
|
-- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue