use nvim-treesitter with all grammars

This commit is contained in:
Dmitriy Pleshevskiy 2022-12-09 22:55:50 +03:00
parent 1504ad1ad0
commit ad87fe9316
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 1 additions and 20 deletions

View file

@ -232,7 +232,6 @@
recommendedNeovim = (minimalNeovim.override { recommendedNeovim = (minimalNeovim.override {
enableDevIcons = true; enableDevIcons = true;
enableTabby = true; enableTabby = true;
grammarFileTypes = [ "nix" "lua" ];
plugins = with minimalNeovim.nix2lua; { plugins = with minimalNeovim.nix2lua; {
nvimTree.settings = { nvimTree.settings = {
@ -259,21 +258,6 @@
}); });
fullNeovim = recommendedNeovim.override { fullNeovim = recommendedNeovim.override {
grammarFileTypes = [
"nix"
"lua"
"bash"
"yaml"
"json"
"rust"
"haskell"
"typescript"
"javascript"
"python"
"sql"
"html"
"pug"
];
plugins = recommendedNeovim.plugins // (with minimalNeovim.nix2lua; { plugins = recommendedNeovim.plugins // (with minimalNeovim.nix2lua; {
lspSaga.settings = { lspSaga.settings = {
border_style = "rounded"; border_style = "rounded";

View file

@ -1,6 +1,5 @@
{ lib { lib
, nvim-treesitter , nvim-treesitter
, grammarFileTypes
, ... , ...
}: }:
@ -8,9 +7,7 @@
let let
inherit (builtins) readFile; inherit (builtins) readFile;
nvimTreesitterWithGrammars = nvim-treesitter.withPlugins nvimTreesitterWithGrammars = nvim-treesitter.withAllGrammars;
(plugins: map (ft: plugins.${ft}) grammarFileTypes);
in in
{ {
luaConfig = readFile ./treesitter.lua; luaConfig = readFile ./treesitter.lua;