module(neovim): add gopls config & additional plugins
This commit is contained in:
parent
7e6c4adbea
commit
042c6dcb50
|
@ -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=";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue