nvim: typst, nushell lsp
tore out old typst compile bind, because typst_lsp compiles on save, and also removed typst.vim plug
This commit is contained in:
parent
38edb7c62a
commit
d2a91ad3bc
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -71,12 +71,6 @@
|
||||
path = src/.local/share/nvim/site/pack/3pp/start/vim-ledger
|
||||
url = https://github.com/ledger/vim-ledger.git
|
||||
|
||||
# document typesetting
|
||||
# ftplugin/typst.vim
|
||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/typst.vim"]
|
||||
path = src/.local/share/nvim/site/pack/3pp/start/typst.vim
|
||||
url = https://github.com/kaarmu/typst.vim.git
|
||||
|
||||
# color theme
|
||||
# init.lua
|
||||
[submodule "src/.local/share/nvim/site/pack/3pp/start/nvim-noirbuddy"]
|
||||
|
1
programs
1
programs
@ -145,6 +145,7 @@ arc-gtk-theme
|
||||
lxappearance-gtk3
|
||||
radare2
|
||||
typst
|
||||
typst-lsp
|
||||
neovide
|
||||
|
||||
# .local/bin/pyinstantref script
|
||||
|
@ -23,16 +23,6 @@ function GitRoot()
|
||||
return fnamemodify(finddir('.git', ";"), ":h")
|
||||
endfunc
|
||||
|
||||
" compile typst doc on write
|
||||
function TypstWatch()
|
||||
vsp
|
||||
vertical resize 20
|
||||
exec 'terminal ' .. 'typst watch --root ' .. GitRoot() .. " " .. expand("%:")
|
||||
exec "norm \<c-w>h"
|
||||
endfunc
|
||||
|
||||
nnoremap <silent><leader>fc :call TypstWatch()<cr>
|
||||
|
||||
nnoremap <silent><leader>fr :silent exec "!zathura --fork " . expand("%:p:r") . ".pdf &"<cr>
|
||||
|
||||
let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}
|
||||
|
@ -55,6 +55,7 @@ require 'nvim-treesitter.configs'.setup {
|
||||
"rust",
|
||||
"query",
|
||||
"typst",
|
||||
"toml",
|
||||
},
|
||||
sync_install = false,
|
||||
auto_install = false,
|
||||
@ -238,6 +239,12 @@ local servers = {
|
||||
},
|
||||
},
|
||||
},
|
||||
typst_lsp = {
|
||||
settings = {
|
||||
exportPdf = "onSave" -- alternatively onType / never
|
||||
}
|
||||
},
|
||||
nushell = {},
|
||||
}
|
||||
for lsp, sv_settings in pairs(servers) do
|
||||
-- defaults
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit d9a7650e76c85f8ba437e056d08dd43b01b8bfd6
|
Loading…
Reference in New Issue
Block a user