Move formatters and lsp_servers into separate files

This commit is contained in:
Evie Litherland-Smith 2023-10-22 06:32:26 +01:00
parent 9dcceed7c0
commit 548977c6fe
3 changed files with 38 additions and 29 deletions

View file

@ -5,6 +5,7 @@ let
DOOMPROFILELOADFILE = "${DOOMLOCALDIR}/load.el";
};
in {
imports = [ ./formatters.nix ./lsp_servers.nix ];
xdg.configFile = {
emacs.source = doom-emacs;
doom.source = ./doom;
@ -53,41 +54,12 @@ in {
gfortran
rustup
texlive.combined.scheme-medium
isort
python3
python3Packages.cython
python3Packages.pyflakes
python3Packages.nose
python3Packages.pytest
nodePackages.stylelint
# Formatters
nixfmt
beautysh
black
nodePackages.fixjson
fprettify
shellharden
shfmt
stylua
python3Packages.mdformat
html-tidy
nodePackages.js-beautify
# LSP servers
nixd
fortls
shellcheck
marksman
luajitPackages.lua-lsp
texlab
nodePackages.pyright
nodePackages.yaml-language-server
nodePackages.bash-language-server
nodePackages.vscode-html-languageserver-bin
nodePackages.vscode-css-languageserver-bin
nodePackages.vscode-json-languageserver-bin
nodePackages.dockerfile-language-server-nodejs
];
};
}

18
home/emacs/formatters.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
nixfmt
beautysh
black
isort
nodePackages.fixjson
fprettify
shellharden
shfmt
stylua
python3Packages.mdformat
html-tidy
nodePackages.js-beautify
];
}

View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [
nixd
fortls
shellcheck
marksman
luajitPackages.lua-lsp
texlab
nodePackages.pyright
nodePackages.yaml-language-server
nodePackages.bash-language-server
nodePackages.vscode-html-languageserver-bin
nodePackages.vscode-css-languageserver-bin
nodePackages.vscode-json-languageserver-bin
nodePackages.dockerfile-language-server-nodejs
];
}