use nvim-treesitter with all grammars
This commit is contained in:
parent
1504ad1ad0
commit
ad87fe9316
2 changed files with 1 additions and 20 deletions
16
flake.nix
16
flake.nix
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in a new issue