feat(lsp): examples on how to setup lspconfig

This commit is contained in:
Folke Lemaitre 2023-01-07 10:53:01 +01:00
parent 32656ad76d
commit 840f8dee5b
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 34 additions and 0 deletions

34
lua/plugins/lsp.lua Normal file
View File

@ -0,0 +1,34 @@
return {
-- lsp servers
{
"neovim/nvim-lspconfig",
---@type lspconfig.options
servers = {
jsonls = {},
sumneko_lua = {
settings = {
Lua = {
workspace = {
checkThirdParty = false,
},
completion = {
callSnippet = "Replace",
},
},
},
},
},
},
-- tools
{
"williamboman/mason.nvim",
ensure_installed = {
"stylua",
"shellcheck",
"shfmt",
"flake8",
},
},
}