mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: replace lsp-installer with mason
This commit is contained in:
parent
b79032f895
commit
f81370291e
1 changed files with 4 additions and 2 deletions
|
|
@ -20,7 +20,8 @@ require('packer').startup(function(use)
|
||||||
use 'nvim-treesitter/nvim-treesitter' -- Highlight, edit, and navigate code
|
use 'nvim-treesitter/nvim-treesitter' -- Highlight, edit, and navigate code
|
||||||
|
|
||||||
use 'neovim/nvim-lspconfig' -- Collection of configurations for built-in LSP client
|
use 'neovim/nvim-lspconfig' -- Collection of configurations for built-in LSP client
|
||||||
use 'williamboman/nvim-lsp-installer' -- Automatically install language servers to stdpath
|
use { "williamboman/mason.nvim" } -- Automatically install language servers to stdpath
|
||||||
|
use { "williamboman/mason-lspconfig.nvim" }
|
||||||
use { 'hrsh7th/nvim-cmp', requires = { 'hrsh7th/cmp-nvim-lsp' } } -- Autocompletion
|
use { 'hrsh7th/nvim-cmp', requires = { 'hrsh7th/cmp-nvim-lsp' } } -- Autocompletion
|
||||||
|
|
||||||
use 'ggandor/leap.nvim' -- Motion plugin
|
use 'ggandor/leap.nvim' -- Motion plugin
|
||||||
|
|
@ -235,7 +236,8 @@ local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protoc
|
||||||
local servers = { 'tsserver', 'sumneko_lua' }
|
local servers = { 'tsserver', 'sumneko_lua' }
|
||||||
|
|
||||||
-- Ensure the servers above are installed
|
-- Ensure the servers above are installed
|
||||||
require('nvim-lsp-installer').setup {
|
require("mason").setup {}
|
||||||
|
require("mason-lspconfig").setup {
|
||||||
ensure_installed = servers,
|
ensure_installed = servers,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue