Compare commits

..

No commits in common. "e22c19be747aa60f8f9a6ab9061ac43ca44b855f" and "f523507e7adf30496729e3988e00e35ffccad398" have entirely different histories.

10 changed files with 54 additions and 39 deletions

6
.gitmodules vendored
View File

@ -71,6 +71,12 @@
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

@ -61,7 +61,6 @@ nftables
sdcv
ufw
rofi
rink
progress
speedtest-cli
obs-studio
@ -146,7 +145,6 @@ arc-gtk-theme
lxappearance-gtk3
radare2
typst
typst-lsp
neovide
# .local/bin/pyinstantref script

View File

@ -17,7 +17,7 @@ abbr -a -- ds swal;
# zathura
alias thur='zathura'
# stricter sandbox zathura
alias zathsec='/usr/bin/zathura-sandbox -c ~/.config/zathura-sec'
alias zathsec='/usr/bin/zathura -c ~/.config/zathura-sec'
# tmux with 256-color and UTF-8
function tmx; tmux -u -2 $argv; end

View File

@ -23,6 +23,16 @@ 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

@ -82,6 +82,12 @@ nnoremap <silent> ZF :qa<cr>
" see .config/nvim/lua/init.lua
lua require('init')
" Code folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
" unfold by default
set foldlevel=99
" auto-pairs
packadd auto-pairs
let g:AutoPairsFlyMode = 0

View File

@ -42,21 +42,7 @@ vim.cmd.packadd("vim-gitgutter")
vim.cmd.packadd("nvim-treesitter")
require 'nvim-treesitter.configs'.setup {
ensure_installed = {
"c",
"cpp",
"javascript",
"typescript",
"python",
"vim",
"fish",
"bash",
"lua",
"rust",
"query",
"typst",
"toml",
},
ensure_installed = { "c", "cpp", "javascript", "typescript", "python", "vim", "fish", "bash", "lua", "rust" },
sync_install = false,
auto_install = false,
highlight = {
@ -72,11 +58,6 @@ require 'nvim-treesitter.configs'.setup {
},
}
-- code folding
vim.wo.foldmethod = 'expr'
vim.wo.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
vim.wo.foldlevel = 99 -- unfold by default
------
-- treesitter (language intelligent) motions
------
@ -167,12 +148,6 @@ end
-- find ruff config file path
local ruff_config = vim.fs.root(0, { ".git", "pyproject.toml" }) or ""
vim.cmd.packadd("cmp-nvim-lsp")
local cmp_nvim_lsp = require('cmp_nvim_lsp')
local pyright_cap = cmp_nvim_lsp.default_capabilities()
-- disable hint level diagnostics in pyright (defer to ruff)
pyright_cap.textDocument.publishDiagnostics = { tagSupport = { valueSet = { 2 } } }
-- table declares LSPs to be set up
-- as well as settings per server (overrides defaults)
local servers = {
@ -182,8 +157,7 @@ local servers = {
-- defer to ruff
disableOrganizeImports = true,
},
},
capabilities = pyright_cap,
}
},
ruff = {
settings = {
@ -239,12 +213,6 @@ local servers = {
},
},
},
typst_lsp = {
settings = {
exportPdf = "onSave" -- alternatively onType / never
}
},
nushell = {},
}
for lsp, sv_settings in pairs(servers) do
-- defaults
@ -263,6 +231,7 @@ end
-- completions
------
vim.cmd.packadd("nvim-cmp")
vim.cmd.packadd("cmp-nvim-lsp")
local cmp = require('cmp')
cmp.setup({

View File

@ -0,0 +1,25 @@
# zathura profile for opening foreign files
set sandbox strict
# make things fit better
set scroll-page-aware true
set adjust-open width
set font "IBM Plex Sans 12"
set recolor-darkcolor "#ffffff"
set recolor-lightcolor rgba(0,0,0,0)
set recolor false
set recolor-keephue true
set recolor-reverse-video true
set default-bg "#000000ff"
set index-bg "#000000"
set index-active-bg "#111111"
set index-active-fg "#FFFFFF"
set inputbar-bg rgba(0,0,0,0.5)
set inputbar-fg "#CCCCCC"
set statusbar-bg rgba(0,0,0,0.5)
set selection-clipboard clipboard

@ -1 +1 @@
Subproject commit 1aad04ecde5ebf8f2b3eea5c6f39d38b251757f5
Subproject commit aa02427dfeaead86fae038024ae7b29299f08b8c

@ -1 +1 @@
Subproject commit 33a17515b79ddb10d750320fa994098bdc3e93ef
Subproject commit 3557e41418b4a6c5b85d5d64abe94c9c50fa9b14

@ -0,0 +1 @@
Subproject commit d9a7650e76c85f8ba437e056d08dd43b01b8bfd6