From 9bbe0077104e5e0dab8b1a8f197f7ce9bb240be4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 7 Nov 2023 13:39:23 +0100 Subject: nvim: Make LSP config more minimal --- .config/nvim/lua/mango/packer.lua | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) (limited to '.config/nvim/lua/mango') diff --git a/.config/nvim/lua/mango/packer.lua b/.config/nvim/lua/mango/packer.lua index 02aa11a..7f6beb1 100644 --- a/.config/nvim/lua/mango/packer.lua +++ b/.config/nvim/lua/mango/packer.lua @@ -36,20 +36,37 @@ return require('packer').startup(function(use) use 'Glench/Vim-Jinja2-Syntax' use 'luckasRanarison/tree-sitter-hypr' - -- LSP support + -- LSP support and completions + use 'neovim/nvim-lspconfig' use { - 'VonHeikemen/lsp-zero.nvim', - branch = 'v2.x', + 'hrsh7th/nvim-cmp', requires = { - -- LSP Support - { 'neovim/nvim-lspconfig' }, - { 'williamboman/mason.nvim' }, - { 'williamboman/mason-lspconfig.nvim' }, - - -- Autocompletion - { 'hrsh7th/nvim-cmp' }, + -- Completion backends + { 'hrsh7th/cmp-buffer' }, + { 'hrsh7th/cmp-nvim-lua' }, { 'hrsh7th/cmp-nvim-lsp' }, + { 'hrsh7th/cmp-path' }, + + -- Snippets { 'L3MON4D3/LuaSnip' }, - } + { 'saadparwaiz1/cmp_luasnip' }, + }, } + + -- LSP support + -- use { + -- 'VonHeikemen/lsp-zero.nvim', + -- branch = 'v2.x', + -- requires = { + -- -- LSP Support + -- { 'neovim/nvim-lspconfig' }, + -- { 'williamboman/mason.nvim' }, + -- { 'williamboman/mason-lspconfig.nvim' }, + + -- -- Autocompletion + -- { 'hrsh7th/nvim-cmp' }, + -- { 'hrsh7th/cmp-nvim-lsp' }, + -- { 'L3MON4D3/LuaSnip' }, + -- } + -- } end) -- cgit v1.2.3