]> git.localhorst.tv Git - nvim-config.git/commitdiff
feat(lsp): examples on how to setup lspconfig
authorFolke Lemaitre <folke.lemaitre@gmail.com>
Sat, 7 Jan 2023 09:53:01 +0000 (10:53 +0100)
committerFolke Lemaitre <folke.lemaitre@gmail.com>
Sat, 7 Jan 2023 09:53:01 +0000 (10:53 +0100)
lua/plugins/lsp.lua [new file with mode: 0644]

diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua
new file mode 100644 (file)
index 0000000..98e92c3
--- /dev/null
@@ -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",
+    },
+  },
+}