aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/opts
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-03-05 10:07:48 +0530
committersinanmohd <sinan@sinanmohd.com>2024-03-05 10:07:48 +0530
commita4510024eed000719a5c8929c081a0d417c2061b (patch)
tree588e5c2bf858447064ac9f19fac61c0a39aa2928 /lua/plugins/opts
parent21f4fdc26a39d72094af560e7bc014931637efef (diff)
lsp/go: init
Diffstat (limited to 'lua/plugins/opts')
-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 },