Compare commits

...

3 commits

Author SHA1 Message Date
dce298154a
feat: include typstyle package 2024-09-27 15:05:24 -07:00
bb1414cd0e
feat: add typstyle formatter 2024-09-27 15:02:17 -07:00
da19031199
feat: add typst preview 2024-09-27 14:49:02 -07:00
7 changed files with 50 additions and 1 deletions

View file

@ -6,5 +6,19 @@
"TermOpen" "TermOpen"
]; ];
} }
# {
# command = {
# __raw = ''
# require('typst-preview').update()
# '';
# };
# event = [
# "BufEnter"
# "BufWinEnter"
# ];
# pattern = [
# "*.typ"
# ];
# }
]; ];
} }

View file

@ -17,6 +17,7 @@
standalonePlugins = [ standalonePlugins = [
"nvim-treesitter" "nvim-treesitter"
"vimplugin-treesitter-grammar-nix" "vimplugin-treesitter-grammar-nix"
"vimplugin-typst-preview.nvim"
]; ];
}; };
byteCompileLua = { byteCompileLua = {

View file

@ -9,5 +9,6 @@
./misc.nix ./misc.nix
./navigation.nix ./navigation.nix
./treesitter.nix ./treesitter.nix
./typst.nix
]; ];
} }

View file

@ -22,6 +22,7 @@
taplo taplo
typstyle
# Misc # Misc
# codespell # codespell
]; ];
@ -92,6 +93,7 @@
html = [ "prettier" ]; html = [ "prettier" ];
javascript = [ "prettier" ]; javascript = [ "prettier" ];
typescript = [ "prettier" ]; typescript = [ "prettier" ];
typst = [ "typstyle" ];
# "*" = ["codespell"]; # "*" = ["codespell"];
"_" = [ "trim_whitespace" ]; "_" = [ "trim_whitespace" ];
}; };

10
config/plugins/typst.nix Normal file
View file

@ -0,0 +1,10 @@
{ inputs, pkgs, ... }:
{
plugins.typst-vim.enable = true;
extraPlugins = [
(pkgs.vimUtils.buildVimPlugin {
name = "typst-preview.nvim";
src = inputs.typst-preview;
})
];
}

View file

@ -337,7 +337,8 @@
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixvim": "nixvim", "nixvim": "nixvim",
"render-markdown": "render-markdown", "render-markdown": "render-markdown",
"satellite": "satellite" "satellite": "satellite",
"typst-preview": "typst-preview"
} }
}, },
"satellite": { "satellite": {
@ -391,6 +392,22 @@
"repo": "treefmt-nix", "repo": "treefmt-nix",
"type": "github" "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", "root": "root",

View file

@ -30,6 +30,10 @@
url = "github:Eandrju/cellular-automaton.nvim"; url = "github:Eandrju/cellular-automaton.nvim";
flake = false; flake = false;
}; };
typst-preview = {
url = "github:chomosuke/typst-preview.nvim";
flake = false;
};
}; };
outputs = outputs =