Compare commits

..

2 Commits

Author SHA1 Message Date
pegasust 5f5439d793 forgorr to invoke lspconfig 2023-07-21 00:56:04 -07:00
pegasust 4ae426dbad forgorr to add setup logic 2023-07-21 00:51:35 -07:00
1 changed files with 4 additions and 3 deletions

View File

@ -961,8 +961,8 @@ local setup = {
local util = require 'lspconfig.util'
local mod_cache = nil
return {
default_config = {
require('lspconfig').gopls.setup {
{
-- NOTE: might just change to `nix run nixpkgs#gopls` for simplicity here
cmd = { 'gopls' },
filetypes = { 'go', 'gomod', 'gowork', 'gotmpl' },
@ -993,7 +993,7 @@ Google's lsp server for golang.
default_config = {
root_dir = [[root_pattern("go.work", "go.mod", ".git")]],
},
},
}
}
end
}
@ -1107,6 +1107,7 @@ require('mason-lspconfig').setup_handlers({
})
setup["nil_ls"]()
setup["gopls"]()
require("rust-tools").setup {
tools = {
-- rust-tools options