summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeeb5k <beebeeb5k@gmail.com>2026-09-01 21:30:16 +0530
committerbeeb5k <beebeeb5k@gmail.com>2026-09-01 21:30:16 +0530
commit220899a1d0c4a39f01f9f43bd71b4c6af41f7a85 (patch)
treee21c1b0c94d09d9635303c9151cade9ebe47f9af
parent3c5867dbbe67505e945bf5a34afc5a6a53b1084f (diff)
Go SupportHEADmain
-rw-r--r--lua/bee/LSPs/init.lua2
-rw-r--r--lua/bee/format.lua1
-rw-r--r--lua/bee/lint.lua1
-rw-r--r--module.nix11
-rw-r--r--plugin/opts.lua2
5 files changed, 15 insertions, 2 deletions
diff --git a/lua/bee/LSPs/init.lua b/lua/bee/LSPs/init.lua
index 31f6b25..d799518 100644
--- a/lua/bee/LSPs/init.lua
+++ b/lua/bee/LSPs/init.lua
@@ -185,7 +185,7 @@ return {
},
{
"gopls",
- -- for_cat = "go",
+ for_cat = "go",
lsp = {
filetypes = { "go", "gomod", "gowork", "gotmpl", "templ" },
},
diff --git a/lua/bee/format.lua b/lua/bee/format.lua
index 7fd38e9..4a58932 100644
--- a/lua/bee/format.lua
+++ b/lua/bee/format.lua
@@ -20,6 +20,7 @@ return {
cpp = { "clang_format" },
cmake = { "cmake_format" },
toml = { "tombi" },
+ go = { "gofmt", "golint" },
-- Use a sub-list to run only the first available formatter
javascript = { { "prettierd", "prettier" } },
},
diff --git a/lua/bee/lint.lua b/lua/bee/lint.lua
index f90aa42..4478448 100644
--- a/lua/bee/lint.lua
+++ b/lua/bee/lint.lua
@@ -8,6 +8,7 @@ return {
toml = { "tombi" },
javascript = { "eslint" },
typescript = { "eslint" },
+ go = { "golangcilint" },
}
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
diff --git a/module.nix b/module.nix
index 4cffdeb..401b44f 100644
--- a/module.nix
+++ b/module.nix
@@ -124,6 +124,17 @@ inputs:
zls
];
};
+ config.specs.go = {
+ lazy = true;
+ data = with pkgs.vimPlugins; [ ];
+ runtimePkgs = with pkgs; [
+ gopls
+ golint
+ golangci-lint
+ gotools
+ go-tools
+ ];
+ };
config.specs.general = {
# this would ensure any config included from nix in here will be ran after any provided by the `lze` spec
diff --git a/plugin/opts.lua b/plugin/opts.lua
index f52ad0f..de62ceb 100644
--- a/plugin/opts.lua
+++ b/plugin/opts.lua
@@ -19,7 +19,7 @@ vim.o.mouse = ""
vim.opt.spell = false
vim.o.smarttab = true
-vim.o.smartindent = true
+-- vim.o.smartindent = true
-- vim.o.indentexpr = true
vim.o.autoindent = true
vim.opt.cpoptions:append("I")