mirror of
https://github.com/youwen5/neovim-flake.git
synced 2024-11-28 12:13:51 -08:00
Compare commits
3 commits
88462d0794
...
dce298154a
Author | SHA1 | Date | |
---|---|---|---|
dce298154a | |||
bb1414cd0e | |||
da19031199 |
7 changed files with 50 additions and 1 deletions
|
@ -6,5 +6,19 @@
|
|||
"TermOpen"
|
||||
];
|
||||
}
|
||||
# {
|
||||
# command = {
|
||||
# __raw = ''
|
||||
# require('typst-preview').update()
|
||||
# '';
|
||||
# };
|
||||
# event = [
|
||||
# "BufEnter"
|
||||
# "BufWinEnter"
|
||||
# ];
|
||||
# pattern = [
|
||||
# "*.typ"
|
||||
# ];
|
||||
# }
|
||||
];
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
standalonePlugins = [
|
||||
"nvim-treesitter"
|
||||
"vimplugin-treesitter-grammar-nix"
|
||||
"vimplugin-typst-preview.nvim"
|
||||
];
|
||||
};
|
||||
byteCompileLua = {
|
||||
|
|
|
@ -9,5 +9,6 @@
|
|||
./misc.nix
|
||||
./navigation.nix
|
||||
./treesitter.nix
|
||||
./typst.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
taplo
|
||||
|
||||
typstyle
|
||||
# Misc
|
||||
# codespell
|
||||
];
|
||||
|
@ -92,6 +93,7 @@
|
|||
html = [ "prettier" ];
|
||||
javascript = [ "prettier" ];
|
||||
typescript = [ "prettier" ];
|
||||
typst = [ "typstyle" ];
|
||||
# "*" = ["codespell"];
|
||||
"_" = [ "trim_whitespace" ];
|
||||
};
|
||||
|
|
10
config/plugins/typst.nix
Normal file
10
config/plugins/typst.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
plugins.typst-vim.enable = true;
|
||||
extraPlugins = [
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "typst-preview.nvim";
|
||||
src = inputs.typst-preview;
|
||||
})
|
||||
];
|
||||
}
|
19
flake.lock
19
flake.lock
|
@ -337,7 +337,8 @@
|
|||
"nixpkgs": "nixpkgs",
|
||||
"nixvim": "nixvim",
|
||||
"render-markdown": "render-markdown",
|
||||
"satellite": "satellite"
|
||||
"satellite": "satellite",
|
||||
"typst-preview": "typst-preview"
|
||||
}
|
||||
},
|
||||
"satellite": {
|
||||
|
@ -391,6 +392,22 @@
|
|||
"repo": "treefmt-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"typst-preview": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1724595641,
|
||||
"narHash": "sha256-kJ6IfLSBmJMgEFuCy6fGtqSRBXjt2Aoxu2NW9iyzRLU=",
|
||||
"owner": "chomosuke",
|
||||
"repo": "typst-preview.nvim",
|
||||
"rev": "7ae2b82cf334819494505b772745beb28705b12b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "chomosuke",
|
||||
"repo": "typst-preview.nvim",
|
||||
"type": "github"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
url = "github:Eandrju/cellular-automaton.nvim";
|
||||
flake = false;
|
||||
};
|
||||
typst-preview = {
|
||||
url = "github:chomosuke/typst-preview.nvim";
|
||||
flake = false;
|
||||
};
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
|
Loading…
Reference in a new issue