corrections and improvements to have all neovim lsp and completions working

This commit is contained in:
Salar Rahmanian 2025-10-05 00:36:55 -07:00
parent f98fe01b0c
commit 7584b9ebfc
7 changed files with 130 additions and 31 deletions

View file

@ -0,0 +1,34 @@
{ ... }:
{
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";
}
# Set indentation for specific filetypes
{
event = "FileType";
pattern = ["swift" "json" "lua" "nix"];
command = "setlocal shiftwidth=2 tabstop=2 softtabstop=2 expandtab";
}
];
}