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 {
|
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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Reference in a new issue