nvim: fix tags

Thanks, Cody!
This commit is contained in:
Motiejus Jakštys 2024-04-19 11:11:08 +03:00 committed by Motiejus Jakštys
parent 79fd639636
commit c1b52bb5e5
3 changed files with 1 additions and 13 deletions

View File

@ -150,7 +150,6 @@ in {
(lib.mkIf devTools [ (lib.mkIf devTools [
pkgs.pkgs-unstable.vimPlugins.vim-go pkgs.pkgs-unstable.vimPlugins.vim-go
pkgs.vimPlugins.zig-vim pkgs.vimPlugins.zig-vim
pkgs.vimPlugins.nvim-lspconfig
]) ])
]; ];
extraConfig = builtins.readFile ./vimrc; extraConfig = builtins.readFile ./vimrc;

View File

@ -2,15 +2,3 @@ vim.api.nvim_exec([[
set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m
"au FileType go let g:go_fmt_command = "@gotools@/bin/goimports" "au FileType go let g:go_fmt_command = "@gotools@/bin/goimports"
]], false) ]], false)
-- trying https://github.com/neovim/nvim-lspconfig/issues/888
local lspconfig = require("lspconfig")
lspconfig.gopls.setup({
cmd = {"@gopls@/bin/gopls"},
settings = {
gopls = {
buildFlags = {"-tags=integration"},
},
},
})

View File

@ -61,6 +61,7 @@
home-manager.users.${config.mj.username} = { home-manager.users.${config.mj.username} = {
home.sessionVariables = { home.sessionVariables = {
GOFLAGS = "-tags=cluster_integration";
GOPRIVATE = "github.com/chronosphereio"; GOPRIVATE = "github.com/chronosphereio";
BUILDKIT_COLORS = "run=123,20,245:error=yellow:cancel=blue:warning=white"; BUILDKIT_COLORS = "run=123,20,245:error=yellow:cancel=blue:warning=white";
}; };