feat: autopairs, cursor restore and rename option (#15)

Add the nvim-autopairs so "'{[ characters will auto close.
Add AutoCmd to restore the cursor position when re-opening file.
Fix treesitter option name.
This commit is contained in:
Roel de Cort 2024-07-25 22:57:29 +02:00 committed by GitHub
parent 21072b364c
commit 48bbb7951d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 98 additions and 39 deletions

View file

@ -0,0 +1,8 @@
{
plugins.nvim-autopairs = {
enable = true;
settings = {
disable_filetype = ["TelescopePrompt" "vim"];
};
};
}

View file

@ -1,7 +1,9 @@
{pkgs, ...}: {
plugins.treesitter = {
enable = true;
indent = true;
settings = {
indent.enable = true;
};
folding = false;
nixvimInjections = true;
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;