init none-ls and justfile

This commit is contained in:
cy 2025-01-23 22:16:34 -05:00
parent caa3b8d081
commit 76b0dd1a4e
2 changed files with 37 additions and 0 deletions

View file

@ -192,6 +192,28 @@
enable = true;
settings.current_line_blame = true;
};
plugins.none-ls = {
enable = true;
enableLspFormat = true;
sources = {
code_actions.gitsigns.enable = true;
completion = {
luasnip.enable = true;
spell.enable = true;
};
diagnostics = {
codespell.enable = true;
commitlint.enable = true;
deadnix.enable = true;
markdownlint.enable = true;
pylint.enable = true;
};
formatting = {
just.enable = true;
};
};
};
plugins.cmp-buffer.enable = true;
plugins.cmp-emoji.enable = true;
@ -205,5 +227,6 @@
plugins.auto-save.enable = true;
plugins.indent-blankline.enable = true;
plugins.undotree.enable = true;
plugins.lsp-format.enable = true;
};
}

14
justfile Normal file
View file

@ -0,0 +1,14 @@
update:
git switch -c update
git push
git switch main
upgrade:
git switch update
sudo nixos-rebuild switch -L --flake . --use-substitutes
nixos-rebuild switch -L --flake .#chunk --target-host root@2a0f:85c1:840:2bfb::1 --use-substitutes
nixos-rebuild switch -L --flake .#titan --target-host root@www.cything.io --use-substitutes
home-manager -L switch --flake .
git switch main
git merge update
git branch -d update