Added luasnip snippets, enabled completion, go, org, rust, all snippets

- url for vim snippets is: https://github.com/honza/vim-snippets
This commit is contained in:
2024-09-20 11:58:51 +02:00
parent 0b3ea1098a
commit d95dc4442c
5 changed files with 686 additions and 4 deletions

View File

@@ -23,10 +23,11 @@ require("lazy").setup({
"hrsh7th/nvim-cmp",
dependencies = {
"lspkind.nvim",
"hrsh7th/cmp-nvim-lsp", -- lsp auto-completion
"hrsh7th/cmp-buffer", -- buffer auto-completion
"hrsh7th/cmp-path", -- path auto-completion
"hrsh7th/cmp-cmdline", -- cmdline auto-completion
"hrsh7th/cmp-nvim-lsp", -- lsp auto-completion
"hrsh7th/cmp-buffer", -- buffer auto-completion
"hrsh7th/cmp-path", -- path auto-completion
"hrsh7th/cmp-cmdline", -- cmdline auto-completion
"saadparwaiz1/cmp_luasnip", -- luasnip auto-completion
},
config = function()
require("config.nvim-cmp")
@@ -37,6 +38,9 @@ require("lazy").setup({
{
"L3MON4D3/LuaSnip",
version = "v2.*",
config = function()
require("luasnip.loaders.from_snipmate").lazy_load()
end,
},
-- LSP manager