Setup go with nvim

This commit is contained in:
2023-09-02 20:17:57 +02:00
parent 8771270f3c
commit ca8edeba83
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
local go_status, go = pcall(require, "go")
if not go_status then
return
end
local lspconfig = require("lspconfig")
local cfg = require("go.lsp").config()
lspconfig["gopls"].setup(cfg)

View File

@@ -22,6 +22,7 @@ mason_lspconfig.setup({
"cssls",
"lua_ls",
"pyright",
"gopls",
"powershell_es",
},
automatic_installation = true,