Add formating and linting support.
This commit is contained in:
parent
a1aad2f381
commit
781464fe74
@ -52,7 +52,23 @@
|
||||
extraConfigLuaPost = ''
|
||||
vim.notify = require("mini.notify").make_notify()
|
||||
'';
|
||||
extraPackages = with pkgs; [ stylua isort black nixfmt ];
|
||||
plugins = {
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
formattersByFt = {
|
||||
lua = [ "stylua" ];
|
||||
python = [ "isort" "black" ];
|
||||
nix = [ "nixfmt" ];
|
||||
};
|
||||
};
|
||||
lint = {
|
||||
enable = true;
|
||||
lintersByFt = {
|
||||
python = [ "mypy" ];
|
||||
ruby = [ "ruby" ];
|
||||
};
|
||||
};
|
||||
harpoon = {
|
||||
enable = true;
|
||||
keymaps = {
|
||||
|
Loading…
Reference in New Issue
Block a user