mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
fix(flutter-tools): bug where dart lsp is not found
This commit is contained in:
parent
efe5905c41
commit
b4eaabea95
5 changed files with 70 additions and 9 deletions
|
@ -25,13 +25,13 @@ inputs: {
|
|||
// extraSpecialArgs;
|
||||
};
|
||||
|
||||
buildPlug = name:
|
||||
buildVimPluginFrom2Nix rec {
|
||||
pname = name;
|
||||
version = "master";
|
||||
src = assert lib.asserts.assertMsg (name != "nvim-treesitter") "Use buildTreesitterPlug for building nvim-treesitter.";
|
||||
getAttr pname inputs;
|
||||
};
|
||||
buildPlug = {pname, ...} @ args:
|
||||
assert lib.asserts.assertMsg (pname != "nvim-treesitter") "Use buildTreesitterPlug for building nvim-treesitter.";
|
||||
buildVimPluginFrom2Nix (args
|
||||
// {
|
||||
version = "master";
|
||||
src = getAttr pname inputs;
|
||||
});
|
||||
|
||||
buildTreesitterPlug = grammars: vimPlugins.nvim-treesitter.withPlugins (_: grammars);
|
||||
|
||||
|
@ -45,7 +45,13 @@ inputs: {
|
|||
(
|
||||
if (plug == "nvim-treesitter")
|
||||
then (buildTreesitterPlug vimOptions.treesitter.grammars)
|
||||
else (buildPlug plug)
|
||||
else if (plug == "flutter-tools-patched")
|
||||
then
|
||||
(buildPlug {
|
||||
pname = "flutter-tools";
|
||||
patches = [../patches/flutter-tools.patch];
|
||||
})
|
||||
else (buildPlug {pname = plug;})
|
||||
)
|
||||
else plug
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue