Add mason-lspconfig plugin
start lsp server automatically
This commit is contained in:
parent
82d9f01eda
commit
0556e2f742
2 changed files with 17 additions and 3 deletions
|
@ -12,14 +12,16 @@ require "paq" {
|
|||
'scrooloose/nerdtree';
|
||||
'lewis6991/gitsigns.nvim';
|
||||
|
||||
|
||||
-- need to install g++ package on Debian
|
||||
-- for tree sitter plugins
|
||||
'nvim-treesitter/nvim-treesitter';
|
||||
|
||||
-- LSP installer
|
||||
'neovim/nvim-lspconfig';
|
||||
-- Mason is a GUI to install language servers and lspconfig is a bridge
|
||||
-- between mason and nvim-lspconfig
|
||||
'williamboman/mason.nvim';
|
||||
'williamboman/mason-lspconfig.nvim';
|
||||
|
||||
-- autocompletion plugin
|
||||
'hrsh7th/nvim-cmp';
|
||||
|
|
|
@ -1 +1,13 @@
|
|||
local mason = require("mason").setup()
|
||||
local mason_lspconfig = require("mason-lspconfig").setup()
|
||||
|
||||
require("mason-lspconfig").setup_handlers({
|
||||
-- The first entry (without a key) will be the default handler
|
||||
-- and will be called for each installed server that doesn't have
|
||||
-- a dedicated handler.
|
||||
function (server_name) -- default handler (optional)
|
||||
require("lspconfig")[server_name].setup {}
|
||||
end,
|
||||
-- Next, you can provide targeted overrides for specific servers.
|
||||
--
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue