feat(neovim): add tree-sitter-pest support and refactor configurations

This commit is contained in:
uttarayan21
2025-11-03 00:56:43 +05:30
parent 0f77e228b0
commit fb3af7f9fa
10 changed files with 115 additions and 74 deletions

View File

@@ -1,8 +1,4 @@
{
pkgs,
# config,
...
}: let
{pkgs, ...}: let
mkMappings = mappings:
[]
++ (pkgs.lib.optionals (builtins.hasAttr "normal" mappings) (mkMode mappings.normal "n"))
@@ -17,16 +13,16 @@
mode = mode;
})
mappings;
border = [
""
""
""
""
""
""
""
""
];
# border = [
# "╭"
# "─"
# "╮"
# "│"
# "╯"
# "─"
# "╰"
# "│"
# ];
rawLua = lua: {
"__raw" = ''
${lua}
@@ -349,9 +345,11 @@ in {
tree-sitter-norg-meta
tree-sitter-just
tree-sitter-nu
# pkgs.tree-sitter-grammars.tree-sitter-d2
tree-sitter-pest
tree-sitter-slint
])
++ pkgs.vimPlugins.nvim-treesitter.allGrammars;
nixGrammars = true;
};
telescope = {
@@ -770,6 +768,12 @@ in {
},
})
vim.filetype.add({
extension = {
pest = "pest",
},
})
vim.filetype.add({
filename = {
['nurfile'] = "nu",