chore: merge
This commit is contained in:
commit
865b630ae3
7 changed files with 67 additions and 5 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -8,3 +8,4 @@ copyq/copyq.lock
|
||||||
copyq/copyq_geometry.*
|
copyq/copyq_geometry.*
|
||||||
copyq/copyq_tab*
|
copyq/copyq_tab*
|
||||||
nvim/lazy-lock.json
|
nvim/lazy-lock.json
|
||||||
|
ncspot/*.cbor
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ alias g+='bear -- g++ -Wextra -Werror -std=c++20'
|
||||||
alias s="kitty +kitten ssh"
|
alias s="kitty +kitten ssh"
|
||||||
alias zl='z "" '
|
alias zl='z "" '
|
||||||
alias jo='joshuto'
|
alias jo='joshuto'
|
||||||
alias nv='neovide --novsync'
|
alias nv='neovide --novsync --nofork'
|
||||||
|
|
||||||
# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
|
# pwd based on the value of _ZO_RESOLVE_SYMLINKS.
|
||||||
function __zoxide_pwd
|
function __zoxide_pwd
|
||||||
|
|
|
||||||
|
|
@ -80,8 +80,8 @@ misc {
|
||||||
vrr = 1
|
vrr = 1
|
||||||
animate_manual_resizes=1
|
animate_manual_resizes=1
|
||||||
animate_mouse_windowdragging=0
|
animate_mouse_windowdragging=0
|
||||||
# enable_swallow=true
|
enable_swallow=true
|
||||||
# swallow_regex=^(.*)(Alacritty)(.*)$
|
swallow_regex=^(.*)(kitty)(.*)$
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
1
nvim/ftdetect/typst.lua
Normal file
1
nvim/ftdetect/typst.lua
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
vim.cmd [[ autocmd BufRead,BufNewFile *.typst set filetype=typst ]]
|
||||||
|
|
@ -4,8 +4,8 @@ return {
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "folke/neoconf.nvim", cmd = "Neoconf", config = true },
|
{ "folke/neoconf.nvim", cmd = "Neoconf", config = true },
|
||||||
{ "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } },
|
{ "folke/neodev.nvim", opts = { experimental = { pathStrict = true } } },
|
||||||
"mason.nvim",
|
"mason.nvim",
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
"lvimuser/lsp-inlayhints.nvim",
|
"lvimuser/lsp-inlayhints.nvim",
|
||||||
|
|
@ -83,12 +83,25 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
typst_lsp = {},
|
||||||
ltex = {
|
ltex = {
|
||||||
settings = {
|
settings = {
|
||||||
ltex = {
|
ltex = {
|
||||||
checkFrequency = "save",
|
checkFrequency = "save",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
filetypes = {
|
||||||
|
"bib",
|
||||||
|
"gitcommit",
|
||||||
|
"markdown",
|
||||||
|
"org",
|
||||||
|
"plaintex",
|
||||||
|
"rst",
|
||||||
|
"rnoweb",
|
||||||
|
"tex",
|
||||||
|
"pandoc",
|
||||||
|
"typst",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
texlab = {},
|
texlab = {},
|
||||||
gopls = {
|
gopls = {
|
||||||
|
|
|
||||||
47
nvim/snippets/typst.lua
Normal file
47
nvim/snippets/typst.lua
Normal file
|
|
@ -0,0 +1,47 @@
|
||||||
|
local ls = require("luasnip")
|
||||||
|
-- some shorthands...
|
||||||
|
local s = ls.s
|
||||||
|
local i = ls.i
|
||||||
|
local t = ls.t
|
||||||
|
local d = ls.dynamic_node
|
||||||
|
local c = ls.choice_node
|
||||||
|
local f = ls.function_node
|
||||||
|
local sn = ls.snippet_node
|
||||||
|
|
||||||
|
local fmt = require("luasnip.extras.fmt").fmt
|
||||||
|
local rep = require("luasnip.extras").rep
|
||||||
|
|
||||||
|
local snippets, autosnippets = {}, {}
|
||||||
|
local group = vim.api.nvim_create_augroup("Tex Snippets", { clear = true })
|
||||||
|
local file_pattern = "*.typst"
|
||||||
|
------------------------------------------------- boilerplate end
|
||||||
|
-- snippers go here:
|
||||||
|
|
||||||
|
local colorSnippet = s(
|
||||||
|
"tx-",
|
||||||
|
fmt(
|
||||||
|
[[ #text({1})[{2}] ]],
|
||||||
|
{
|
||||||
|
i(1, "color"),
|
||||||
|
i(2, "text"),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
table.insert(snippets, colorSnippet)
|
||||||
|
|
||||||
|
local imageSnippet = s(
|
||||||
|
"image-",
|
||||||
|
fmt(
|
||||||
|
[[
|
||||||
|
#image("{1}", width: {2}%)
|
||||||
|
]],
|
||||||
|
{
|
||||||
|
i(1, "image"),
|
||||||
|
i(2, "width"),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
)
|
||||||
|
table.insert(snippets, imageSnippet)
|
||||||
|
|
||||||
|
------------------------------------------------- snippets end
|
||||||
|
return snippets, autosnippets
|
||||||
Loading…
Add table
Add a link
Reference in a new issue