testing nixvim
This commit is contained in:
27
home/extra/neovim/autocommands.nix
Normal file
27
home/extra/neovim/autocommands.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
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 = [
|
||||
"tex"
|
||||
"latex"
|
||||
"markdown"
|
||||
];
|
||||
command = "setlocal spell spelllang=en,fr";
|
||||
}
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user