45 lines
788 B
Nix
45 lines
788 B
Nix
{
|
|
programs.nixvim = {
|
|
autoGroups = {
|
|
Christoph = {};
|
|
};
|
|
|
|
autoCmd = [
|
|
{
|
|
event = "BufWritePre";
|
|
group = "Christoph";
|
|
pattern = "*";
|
|
command = "%s/\\s\\+$//e";
|
|
}
|
|
{
|
|
event = "BufReadPost";
|
|
group = "Christoph";
|
|
pattern = "*";
|
|
command = "normal zR";
|
|
}
|
|
{
|
|
event = "FileReadPost";
|
|
group = "Christoph";
|
|
pattern = "*";
|
|
command = "normal zR";
|
|
}
|
|
{
|
|
event = "FileType";
|
|
group = "Christoph";
|
|
pattern = "elixir,eelixir,heex";
|
|
command = "setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2";
|
|
}
|
|
{
|
|
event = "FileType";
|
|
group = "Christoph";
|
|
pattern = "opencode,opencode_output";
|
|
callback.__raw = ''
|
|
function()
|
|
vim.b.ministatusline_disable = true
|
|
end
|
|
'';
|
|
}
|
|
];
|
|
};
|
|
}
|