From 840f8dee5bbfbd2f04c1a53e5c45798a0ef22ac5 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 7 Jan 2023 10:53:01 +0100 Subject: [PATCH] feat(lsp): examples on how to setup lspconfig --- lua/plugins/lsp.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lua/plugins/lsp.lua diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua new file mode 100644 index 0000000..98e92c3 --- /dev/null +++ b/lua/plugins/lsp.lua @@ -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", + }, + }, +}