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

View file

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