Setup go with nvim
This commit is contained in:
9
lua/taken/plugins/lazy/go.lua
Normal file
9
lua/taken/plugins/lazy/go.lua
Normal 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)
|
||||
Reference in New Issue
Block a user