Compare commits

...

5 commits

Author SHA1 Message Date
bff8f07e60
nvim: Update spellfile 2025-02-07 13:13:57 +01:00
1c49e52268
river: Update for current screen setup
HACK Still need to figure out a better way to identify and set displays.
2025-02-07 13:13:47 +01:00
3201039557
nvim: Remove leftover papis plugin comments 2025-02-07 13:13:08 +01:00
31dc3fa9b7
git: Change merge conflict to zdiff3 style 2025-02-07 13:12:47 +01:00
083ef0a6ad
zk: Move nvim wiki index opening to zk module
While technically invoking nvim, it belongs more into the zk module
since it is only to be added if zk exists.
2025-02-07 13:11:52 +01:00
7 changed files with 12 additions and 29 deletions

View file

@ -274,8 +274,8 @@ if exist swww; then
riverctl spawn "swww init" riverctl spawn "swww init"
outputs=$(swww query | cut -d':' -f1) outputs=$(swww query | cut -d':' -f1)
if [ "$(echo "$outputs" | grep -c -e '^DP')" -eq 2 ] && [ -e "$HOME/pictures/wall_r.jpg" ]; then if [ "$(echo "$outputs" | grep -c -e '^DP')" -eq 2 ] && [ -e "$HOME/pictures/wall_r.jpg" ]; then
swww img -o "$(echo "$outputs" | head -n1)" "$HOME/pictures/wall_l.jpg" swww img -o "$(echo "$outputs" | head -n1)" "$HOME/pictures/wall_r.jpg"
swww img -o "$(echo "$outputs" | tail -n1)" "$HOME/pictures/wall_r.jpg" swww img -o "$(echo "$outputs" | tail -n1)" "$HOME/pictures/wall_l.jpg"
elif [ -e "$HOME/pictures/wall.jpg" ]; then elif [ -e "$HOME/pictures/wall.jpg" ]; then
swww img "$HOME/pictures/wall.jpg" swww img "$HOME/pictures/wall.jpg"
fi fi

View file

@ -5,7 +5,7 @@ vim.api.nvim_create_autocmd({ "TextYankPost" }, {
group = vim.api.nvim_create_augroup("highlightyanks", { clear = true }), group = vim.api.nvim_create_augroup("highlightyanks", { clear = true }),
}) })
-- Special setting for editing gopass files - make sure nothing leaks outside the directories it -- Special setting for editing gopass files - make sure nothing leaks outside the directories it
-- is supposed to -- is supposed to
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
pattern = { pattern = {
@ -42,4 +42,3 @@ vim.api.nvim_create_user_command("SpellToggle", function(opt)
vim.notify("Spellcheck disabled") vim.notify("Spellcheck disabled")
end end
end, { nargs = "*", bang = true }) end, { nargs = "*", bang = true })

View file

@ -256,27 +256,6 @@ local prose_plugs = {
config = true, config = true,
}, },
-- cite as you write from papis databases
-- ADDITIONAL DEPENDENCIES: papis and yq in shell env
-- still same issues: slow, buggy, does not work for me
{
"jghauser/papis.nvim",
dependencies = {
"kkharji/sqlite.lua",
"MunifTanjim/nui.nvim",
"pysan3/pathlib.nvim",
"nvim-neotest/nvim-nio",
-- if not already installed, you may also want:
{ "nvim-telescope/telescope.nvim", optional = true },
-- "hrsh7th/nvim-cmp",
},
config = function()
require("papis").setup({
init_filetypes = prose_ft,
})
end,
lazy = false,
},
{ {
"barreiroleo/ltex_extra.nvim", "barreiroleo/ltex_extra.nvim",
branch = "dev", branch = "dev",

View file

@ -226,3 +226,4 @@ decarbonisation
Oportunidades Oportunidades
OECD OECD
NREGA NREGA
Oehme

View file

@ -5,8 +5,5 @@ if exist nvim; then
alias v="nvim" alias v="nvim"
alias vim="nvim" alias vim="nvim"
# open notes with my vim zettelkasten plugin
# TODO better implementation conditional on zk & zettelkasten existing
alias vn='nvim +"lua require \"zk.commands\".get(\"ZkCd\")()" +"edit ~/documents/notes/index.md"'
alias vs='nvim +"lua require \"personal.scratchpad\".create()"' alias vs='nvim +"lua require \"personal.scratchpad\".create()"'
fi fi

View file

@ -11,7 +11,7 @@
[interactive] [interactive]
diffFilter = git delta --color-only diffFilter = git delta --color-only
[merge] [merge]
conflictstyle = diff3 conflictStyle = zdiff3
[delta] [delta]
navigate = true navigate = true
line-numbers = true line-numbers = true

View file

@ -8,3 +8,10 @@ n() {
zk "${@}" zk "${@}"
fi fi
} }
# open notes with my vim zettelkasten plugin
# TODO better implementation conditional on zk.nvim & zettelkasten existing
# nvim +'lua pcall(require "zk.commands"') --headless +qa 2>&1 or similar to check - but slow
if command -v nvim >/dev/null 2>&1; then
alias ni='nvim +"lua require \"zk.commands\".get(\"ZkCd\")()" +"edit $WIKIROOT/index.md"'
fi