56 lines
1.7 KiB
Lua
56 lines
1.7 KiB
Lua
|
|
return {
|
|
{ 'mtoohey31/cmp-fish', ft = 'fish' },
|
|
{ 'rcarriga/cmp-dap', ft = { 'dap-repl', 'dapui_watches', 'dapui_hover' } },
|
|
{
|
|
'hrsh7th/nvim-cmp',
|
|
event = 'InsertEnter',
|
|
dependencies = {
|
|
'hrsh7th/cmp-buffer',
|
|
'hrsh7th/cmp-path',
|
|
'hrsh7th/cmp-nvim-lsp',
|
|
'saadparwaiz1/cmp_luasnip',
|
|
{
|
|
'L3MON4D3/LuaSnip',
|
|
dependencies = 'rafamadriz/friendly-snippets',
|
|
config = function()
|
|
require('user.plugins.completion.luasnip')
|
|
end,
|
|
},
|
|
},
|
|
config = function()
|
|
require('user.plugins.completion.cmp')
|
|
end,
|
|
},
|
|
{
|
|
'ii14/emmylua-nvim',
|
|
-- we only care about the EmmyLua files (loaded by lua-language-server)
|
|
init = function()
|
|
require('lazy.core.loader').disable_rtp_plugin('emmylua-nvim')
|
|
end,
|
|
},
|
|
{
|
|
'TabbyML/tabby',
|
|
event = 'InsertEnter',
|
|
cmd = 'Tabby',
|
|
enabled = vim.loop.os_uname().sysname == 'Darwin', -- I don't use NVIDIA, so only use this plugin on M1/M2 machines
|
|
init = function()
|
|
local config = {
|
|
tabby_server_url = 'http://127.0.0.1:10069',
|
|
tabby_enable = false,
|
|
tabby_suggestion_delay = vim.opt.updatetime:get(),
|
|
tabby_accept_binding = "<C-]>",
|
|
tabby_dismiss_binding = "<A-]>",
|
|
}
|
|
|
|
for k, v in pairs(config) do
|
|
vim.g[k] = v
|
|
end
|
|
end,
|
|
config = function(plugin)
|
|
require('lazy.core.loader').disable_rtp_plugin('tabby')
|
|
vim.opt.rtp:append(plugin.dir .. "/clients/vim")
|
|
end,
|
|
},
|
|
}
|