feat(neovim): add tree-sitter-pest support and refactor configurations
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user