mirror of
https://github.com/Ascyii/nvim.git
synced 2026-01-01 04:04:24 -05:00
Full refactor of codebase and usage of lazyvim opts setting. Also split code in custom plugins
This commit is contained in:
38
lua/plugins/typstar.lua
Normal file
38
lua/plugins/typstar.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
return {
|
||||
{
|
||||
"Ascyii/typstar",
|
||||
dependencies = {
|
||||
"L3MON4D3/LuaSnip",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
dev = true,
|
||||
ft = { "typst" },
|
||||
keys = {
|
||||
{
|
||||
"<M-t>",
|
||||
"<Cmd>TypstarToggleSnippets<CR>",
|
||||
mode = { "n", "i" },
|
||||
},
|
||||
{
|
||||
"<M-j>",
|
||||
"<Cmd>TypstarSmartJump<CR>",
|
||||
mode = { "s", "i" },
|
||||
},
|
||||
{
|
||||
"<M-k>",
|
||||
"<Cmd>TypstarSmartJumpBack<CR>",
|
||||
mode = { "s", "i" },
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
local typstar = require("typstar")
|
||||
typstar.setup({
|
||||
add_undo_breakpoints = true,
|
||||
typstarRoot = "~/projects/typstar",
|
||||
rnote = {
|
||||
assetsDir = 'typst-assets',
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user