From a4510024eed000719a5c8929c081a0d417c2061b Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 5 Mar 2024 10:07:48 +0530 Subject: lsp/go: init --- lua/plugins/opts/lspconfig.lua | 12 ++++++++++++ lua/plugins/opts/treesitter.lua | 1 + 2 files changed, 13 insertions(+) (limited to 'lua/plugins/opts') 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 }, -- cgit v1.2.3