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)