feat(nvim)!: switch formatter.nvim to conform.nvim

This commit is contained in:
Moritz Böhme 2023-11-03 13:48:47 +01:00
parent cf425d4db9
commit 1735fb38da
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
8 changed files with 110 additions and 154 deletions

View file

@ -1,20 +1,8 @@
{ pkgs, lib, ... }:
{ pkgs, ... }:
with builtins;
{
config.home-manager.users.moritz.programs.neovim.lazy.plugins = with pkgs.vimPlugins; [
{
plugin = formatter-nvim;
cmd = [ "Format" "Fmt" ];
keys = [
{
key = "=";
cmd = "<cmd>Format<cr>";
desc = "format (formatter)";
}
];
conf = readFile ./lua/formatter-nvim.lua;
}
{
plugin = oil-nvim;
lazy = false;
@ -321,5 +309,13 @@ with builtins;
];
conf = readFile ./lua/neotest.lua;
}
{
plugin = conform-nvim;
keys = [
{ key = "="; cmd = "<cmd>lua require('conform').format()<cr>"; desc = "format buffer"; mode = [ "n" "v" ]; }
];
cmd = [ "ConformInfo" "Format" ];
conf = readFile ./lua/conform.lua;
}
];
}