mirror of
https://github.com/tuxdotrs/nixos-config.git
synced 2025-07-07 02:06:34 +05:30
add go lang support
This commit is contained in:
@ -4,7 +4,7 @@ local capabilities = configs.capabilities
|
|||||||
|
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
local servers = { "tsserver", "tailwindcss", "eslint" }
|
local servers = { "tsserver", "tailwindcss", "eslint", "gopls" }
|
||||||
|
|
||||||
local function organize_imports()
|
local function organize_imports()
|
||||||
local params = {
|
local params = {
|
||||||
|
@ -15,6 +15,12 @@ M.treesitter = {
|
|||||||
|
|
||||||
-- nix
|
-- nix
|
||||||
"nix",
|
"nix",
|
||||||
|
|
||||||
|
-- go
|
||||||
|
"go",
|
||||||
|
"gomod",
|
||||||
|
"gowork",
|
||||||
|
"gosum",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,6 +42,14 @@ M.mason = {
|
|||||||
|
|
||||||
-- nix
|
-- nix
|
||||||
"nil",
|
"nil",
|
||||||
|
|
||||||
|
-- go
|
||||||
|
"gopls",
|
||||||
|
"goimports",
|
||||||
|
"gofumpt",
|
||||||
|
"gomodifytags",
|
||||||
|
"impl",
|
||||||
|
"iferr",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user