dotfiles/home/modules/tui/neovim/autocmds.nix

25 lines
467 B
Nix
Raw Normal View History

2024-12-05 03:11:13 +00:00
{
programs.nixvim.autoCmd = [
# Vertically center document when entering insert mode
{
event = "InsertEnter";
command = "norm zz";
}
# Open help in a vertical split
{
event = "FileType";
pattern = "help";
command = "wincmd L";
}
# Enable spellcheck for some filetypes
{
event = "FileType";
pattern = [
"markdown"
];
command = "setlocal spell spelllang=en";
}
];
}