forgorr to invoke lspconfig
parent
4ae426dbad
commit
5f5439d793
|
@ -961,8 +961,8 @@ local setup = {
|
||||||
local util = require 'lspconfig.util'
|
local util = require 'lspconfig.util'
|
||||||
local mod_cache = nil
|
local mod_cache = nil
|
||||||
|
|
||||||
return {
|
require('lspconfig').gopls.setup {
|
||||||
default_config = {
|
{
|
||||||
-- NOTE: might just change to `nix run nixpkgs#gopls` for simplicity here
|
-- NOTE: might just change to `nix run nixpkgs#gopls` for simplicity here
|
||||||
cmd = { 'gopls' },
|
cmd = { 'gopls' },
|
||||||
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
|
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
|
||||||
|
@ -993,7 +993,7 @@ Google's lsp server for golang.
|
||||||
default_config = {
|
default_config = {
|
||||||
root_dir = [[root_pattern("go.work", "go.mod", ".git")]],
|
root_dir = [[root_pattern("go.work", "go.mod", ".git")]],
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue