aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/opts/lspconfig.lua12
-rw-r--r--lua/plugins/opts/treesitter.lua1
2 files changed, 13 insertions, 0 deletions
diff --git a/lua/plugins/opts/lspconfig.lua b/lua/plugins/opts/lspconfig.lua
index c22dfc7..1a5842d 100644
--- a/lua/plugins/opts/lspconfig.lua
+++ b/lua/plugins/opts/lspconfig.lua
@@ -30,6 +30,18 @@ lspconfig.ccls.setup({
},
})
+lspconfig.gopls.setup({
+ settings = {
+ gopls = {
+ completeUnimported = true,
+ usePlaceholders = true,
+ analyses = {
+ unusedparms = true,
+ },
+ },
+ },
+})
+
lspconfig.bashls.setup({})
lspconfig.nil_ls.setup({})
lspconfig.pyright.setup({})
diff --git a/lua/plugins/opts/treesitter.lua b/lua/plugins/opts/treesitter.lua
index b9ec31a..9da5690 100644
--- a/lua/plugins/opts/treesitter.lua
+++ b/lua/plugins/opts/treesitter.lua
@@ -11,6 +11,7 @@ return {
"javascript",
"typescript",
"svelte",
+ "go",
},
sync_install = false,
indent = { enable = true },