mirror of
https://github.com/tomru/lazyvim.git
synced 2026-03-02 22:17:16 +01:00
feat(lsp): examples on how to setup lspconfig
This commit is contained in:
34
lua/plugins/lsp.lua
Normal file
34
lua/plugins/lsp.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user