chore: Add window swallowing for kitty

This commit is contained in:
Fabio Lenherr / DashieTM 2023-05-02 10:13:41 +02:00
parent b878ea51cd
commit 32d2cd47b4
6 changed files with 66 additions and 5 deletions

View file

@ -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

View file

@ -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
View file

@ -0,0 +1 @@
vim.cmd [[ autocmd BufRead,BufNewFile *.typst set filetype=typst ]]

View file

@ -82,12 +82,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
View 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