diff options
| author | Folke Lemaitre <folke.lemaitre@gmail.com> | 2023-01-07 10:53:01 +0100 | 
|---|---|---|
| committer | Folke Lemaitre <folke.lemaitre@gmail.com> | 2023-01-07 10:53:01 +0100 | 
| commit | 840f8dee5bbfbd2f04c1a53e5c45798a0ef22ac5 (patch) | |
| tree | 07e2a3e13324e5b85fad33f6f517603d463794c2 /lua | |
| parent | 32656ad76d86b409252d8feb1510cc2910fa9f6b (diff) | |
feat(lsp): examples on how to setup lspconfig
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/plugins/lsp.lua | 34 | 
1 files changed, 34 insertions, 0 deletions
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", +    }, +  }, +}  | 
