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:
dogeystamp 2024-08-05 20:08:55 -04:00
parent 38edb7c62a
commit d2a91ad3bc
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
5 changed files with 8 additions and 17 deletions

6
.gitmodules vendored
View File

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

View File

@ -145,6 +145,7 @@ arc-gtk-theme
lxappearance-gtk3
radare2
typst
typst-lsp
neovide
# .local/bin/pyinstantref script

View File

@ -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 = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}

View File

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