diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-03-05 10:07:48 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-03-05 10:07:48 +0530 |
commit | a4510024eed000719a5c8929c081a0d417c2061b (patch) | |
tree | 588e5c2bf858447064ac9f19fac61c0a39aa2928 | |
parent | 21f4fdc26a39d72094af560e7bc014931637efef (diff) |
lsp/go: init
-rw-r--r-- | lua/plugins/opts/lspconfig.lua | 12 | ||||
-rw-r--r-- | lua/plugins/opts/treesitter.lua | 1 |
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 }, |