diff options
| author | brustybee <bee@4d2.org> | 2026-03-09 17:02:03 +0530 |
|---|---|---|
| committer | brustybee <bee@4d2.org> | 2026-03-09 17:02:03 +0530 |
| commit | 972e5f9c68cc433c5fc26adf92cd25b293a3776a (patch) | |
| tree | c5930854787316181d07854048d9627538017ceb /lua/plugins/misc.lua | |
One shot upload
Diffstat (limited to 'lua/plugins/misc.lua')
| -rw-r--r-- | lua/plugins/misc.lua | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/lua/plugins/misc.lua b/lua/plugins/misc.lua new file mode 100644 index 0000000..37185ae --- /dev/null +++ b/lua/plugins/misc.lua @@ -0,0 +1,50 @@ +return { + { + "obsidian.nvim", + for_cats = "misc", + event = { + "BufReadPre " .. vim.fn.expand("~") .. "/Notes/**/*.md", + "BufNewFile " .. vim.fn.expand("~") .. "/Notes/**/*.md", + }, + after = function() + require("obsidian").setup({ + legacy_commands = false, + workspaces = { + { + name = "personal", + path = "~/Notes", + }, + }, + }) + end, + }, + { + "typst-preview.nvim", + ft = "typst", + for_cats = "misc", + after = function() + require("typst-preview").setup({ + debug = false, + open_cmd = nil, + port = nil, + invert_colors = "never", + follow_cursor = true, + dependencies_bin = { + tinymist = "tinymist", + websocat = "websocat", + }, + extra_args = nil, + get_root = function(path_of_main_file) + local root = os.getenv("TYPST_ROOT") + if root then + return root + end + return vim.fn.fnamemodify(path_of_main_file, ":p:h") + end, + get_main_file = function(path_of_buffer) + return path_of_buffer + end, + }) + end, + }, +} |
