diff options
-rw-r--r-- | after/plugin/lsp.lua | 3 | ||||
-rw-r--r-- | init.lua | 7 |
2 files changed, 1 insertions, 9 deletions
diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index dfcf7ea..cfb10e8 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -2,7 +2,7 @@ local lsp = require("lsp-zero") lsp.preset("recommended") -lsp.ensure_installed({ +lsp.setup_servers({ 'clangd', 'rust_analyzer', 'lua_ls', @@ -11,7 +11,6 @@ lsp.ensure_installed({ -- Fix Undefined global 'vim' lsp.nvim_workspace() - local cmp = require('cmp') local cmp_select = {behavior = cmp.SelectBehavior.Select} local cmp_mappings = lsp.defaults.cmp_mappings({ @@ -17,13 +17,6 @@ return require('packer').startup(function(use) requires = { -- LSP Support {'neovim/nvim-lspconfig'}, -- Required - { -- Optional - 'williamboman/mason.nvim', - run = function() - pcall(vim.cmd, 'MasonUpdate') - end, - }, - {'williamboman/mason-lspconfig.nvim'}, -- Optional -- Autocompletion {'hrsh7th/nvim-cmp'}, -- Required |