1
0
Fork 0

module(neovim): add gopls config & additional plugins

This commit is contained in:
Antoine Langlois 2024-04-11 19:34:58 +02:00
parent 7e6c4adbea
commit 042c6dcb50
Signed by: DataHearth
GPG Key ID: 946E2D0C410C7B3D
2 changed files with 37 additions and 1 deletions

View File

@ -90,6 +90,33 @@ in
};
};
};
extraPlugins = [
{
config = ''
lua require("gotests").setup()
'';
plugin = pkgs.vimUtils.buildVimPlugin {
name = "gotests.nvim";
src = pkgs.fetchFromGitHub {
owner = "yanskun";
repo = "gotests.nvim";
rev = "2ddd2a3d43a7ab92cc14f6a2f84291d991a30c2d";
hash = "sha256-OHUK2pv9VHKzSuFRo3e1Y7Akjmjbs+jjxi6NaXHqeCk=";
};
};
}
{
plugin = pkgs.vimUtils.buildVimPlugin {
name = "vim-go-impl";
src = pkgs.fetchFromGitHub {
owner = "rhysd";
repo = "vim-go-impl";
rev = "74988dc3958f68355b9d4a3ffaa97a74d0006248";
hash = "sha256-oPjULtIQpIf5qrCbaiybOCaB4zJDmrBuCretyXPViCM=";
};
};
}
];
};
};
}

View File

@ -3,7 +3,16 @@
servers = {
bashls.enable = true;
dockerls.enable = true;
gopls.enable = true;
gopls = {
enable = true;
extraOptions = {
staticcheck = true;
gofumpt = true;
analyses = {
unusedvariable = true;
};
};
};
html.enable = true;
htmx.enable = true;
jsonls.enable = true;