Skip to content

Commit

Permalink
Remove nvim_lua from sources
Browse files Browse the repository at this point in the history
Neodev configured LSP has more context. Ref: nvim-lua/kickstart.nvim#696 (comment)
  • Loading branch information
DeeprajPandey committed Sep 25, 2024
1 parent 4a9ba26 commit 2186e8f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions config/nvim/lua/prsnl/plugins/lsp/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ M = {
return 'make install_jsregexp'
end
)(),
dependencies = { 'rafamadriz/friendly-snippets' }, -- useful snippets
dependencies = {
'rafamadriz/friendly-snippets',
config = function()
require('luasnip.loaders.from_vscode').lazy_load()
end,
}, -- useful snippets
},
'saadparwaiz1/cmp_luasnip', -- autocompletions
'hrsh7th/cmp-nvim-lsp-signature-help',
'hrsh7th/cmp-calc',
'SergioRibera/cmp-dotenv',
'hrsh7th/cmp-nvim-lua', -- neovim lua api
-- {
-- 'Exafunction/codeium.nvim',
-- enabled = false,
Expand Down Expand Up @@ -102,8 +106,6 @@ function M.config(_, opts)
end,
})

require('luasnip.loaders.from_vscode').lazy_load()

-- Configure nvim-cmp with sources and keymaps
cmp.setup({
performance = {
Expand Down Expand Up @@ -132,7 +134,6 @@ function M.config(_, opts)
{ name = 'nvim_lsp_signature_help' },
{ name = 'calc' },
{ name = 'dotenv' },
{ name = 'nvim_lua' },
-- { name = 'copilot' },
-- { name = 'codeium' },
-- { name = 'crates' },
Expand Down

0 comments on commit 2186e8f

Please sign in to comment.