chore: Changes to nvim cmp

This commit is contained in:
Afonso Franco 2023-01-06 08:49:17 +00:00
parent 48311244d9
commit cebaeba573
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
2 changed files with 36 additions and 10 deletions

View file

@ -53,6 +53,8 @@ local plugins = packer.startup({ function(use)
use { "hrsh7th/nvim-cmp",
requires = {
"hrsh7th/cmp-nvim-lsp", -- lsp
"hrsh7th/cmp-nvim-lua", -- Nvim API completions
"hrsh7th/cmp-nvim-lsp-signature-help", -- Show function signatures
"hrsh7th/cmp-buffer", --buffer completions
"hrsh7th/cmp-path", --path completions
"hrsh7th/cmp-cmdline" --cmdline completions
@ -61,6 +63,12 @@ local plugins = packer.startup({ function(use)
require "plugins.cmp"
end
}
use { "L3MON4D3/LuaSnip",
requires = {
"saadparwaiz1/cmp_luasnip"
},
}
-------------------------------------------------------LSP----------------------------------------------
use { "williamboman/mason.nvim",
@ -71,8 +79,6 @@ local plugins = packer.startup({ function(use)
use { "williamboman/mason-lspconfig.nvim" }
use { "hrsh7th/cmp-nvim-lsp"}
use { "neovim/nvim-lspconfig",
config = function()
require "plugins.lspconfig"
@ -85,12 +91,6 @@ local plugins = packer.startup({ function(use)
end
}
use { "L3MON4D3/LuaSnip",
requires = {
"rafamadriz/friendly-snippets",
"saadparwaiz1/cmp_luasnip"
},
}
------------------------------------------------------------------------------------------