mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-23 04:32:19 +00:00
31 lines
606 B
Nix
31 lines
606 B
Nix
{
|
|
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";
|
|
}
|
|
|
|
# Enable wrap for some filetypes
|
|
{
|
|
event = "FileType";
|
|
pattern = [ "markdown" ];
|
|
command = "setlocal wrap linebreak";
|
|
}
|
|
];
|
|
}
|
|
|