Move formatters and lsp_servers into separate files
This commit is contained in:
parent
9dcceed7c0
commit
548977c6fe
|
@ -5,6 +5,7 @@ let
|
||||||
DOOMPROFILELOADFILE = "${DOOMLOCALDIR}/load.el";
|
DOOMPROFILELOADFILE = "${DOOMLOCALDIR}/load.el";
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
imports = [ ./formatters.nix ./lsp_servers.nix ];
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
emacs.source = doom-emacs;
|
emacs.source = doom-emacs;
|
||||||
doom.source = ./doom;
|
doom.source = ./doom;
|
||||||
|
@ -53,41 +54,12 @@ in {
|
||||||
gfortran
|
gfortran
|
||||||
rustup
|
rustup
|
||||||
texlive.combined.scheme-medium
|
texlive.combined.scheme-medium
|
||||||
isort
|
|
||||||
python3
|
python3
|
||||||
python3Packages.cython
|
python3Packages.cython
|
||||||
python3Packages.pyflakes
|
python3Packages.pyflakes
|
||||||
python3Packages.nose
|
python3Packages.nose
|
||||||
python3Packages.pytest
|
python3Packages.pytest
|
||||||
nodePackages.stylelint
|
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
18
home/emacs/formatters.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
19
home/emacs/lsp_servers.nix
Normal file
19
home/emacs/lsp_servers.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue