Add formating and linting support.

This commit is contained in:
CronyAkatsuki 2024-03-10 20:13:50 +01:00
parent a1aad2f381
commit 781464fe74

View File

@ -52,7 +52,23 @@
extraConfigLuaPost = '' extraConfigLuaPost = ''
vim.notify = require("mini.notify").make_notify() vim.notify = require("mini.notify").make_notify()
''; '';
extraPackages = with pkgs; [ stylua isort black nixfmt ];
plugins = { plugins = {
conform-nvim = {
enable = true;
formattersByFt = {
lua = [ "stylua" ];
python = [ "isort" "black" ];
nix = [ "nixfmt" ];
};
};
lint = {
enable = true;
lintersByFt = {
python = [ "mypy" ];
ruby = [ "ruby" ];
};
};
harpoon = { harpoon = {
enable = true; enable = true;
keymaps = { keymaps = {