summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--after/plugin/lsp.lua3
-rw-r--r--init.lua7
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({
diff --git a/init.lua b/init.lua
index a214559..1909781 100644
--- a/init.lua
+++ b/init.lua
@@ -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