Compare commits

..

7 commits

Author SHA1 Message Date
b8932e9ca8
nvim: Switch Navigator plugin to use wezterm
Using wezterm in current implementation of Navigator.nvim plugin -
somewhat of a HACK until the final implementation exists in the plugin.
2022-11-25 17:01:32 +01:00
bb9736b5ed
vifm: Change default image opener to timg
Changed opening images by default to do so on the commandline itself,
using timg.
Other openers can still be invoked through the `:file` command like
before.
2022-11-25 17:00:00 +01:00
ef80482807
wezterm: Add event handling 2022-11-25 16:21:20 +01:00
ddfc334ae8
wezterm: Add config 2022-11-23 12:27:01 +01:00
d7404e0465
qutebrowser: Fix terminal calls for wezterm 2022-11-23 12:27:01 +01:00
4877b9a6bb
sh: Add timg aliases
Added shell aliases for 'image listings' which aims to mimic the `ls`
command in a very simple way.

Invoke it via `il` to display a grid of all images residing in current
directory. Images are being detected not by their extension but by
running a `file` operation on, so in very large directories this might
take a little (though, your terminal will probably buckle under the
weight of displaying thousands of images anyway, so use with care).

`IL` provides the same functionality but recurses into an arbitrary
amount of subdirectories. Very useful to get an overview of a certain
directory and its children but, again, think for a second before using
since this could easily spew thousands of pictures into your term.
2022-11-23 12:26:59 +01:00
7daa64fe3b
sh: Replace kitty invocations with wezterm 2022-11-23 12:26:04 +01:00
5 changed files with 41 additions and 33 deletions

View file

@ -4,9 +4,6 @@
signingkey = 73BA40D5AFAF49C9 signingkey = 73BA40D5AFAF49C9
[init] [init]
defaultBranch = main defaultBranch = main
[sendemail]
smtpserver = "/usr/bin/msmtp"
annotate = yes
[alias] [alias]
ignore = "!gitignore -f" ignore = "!gitignore -f"
pushmerge = "push -o merge_request.merge_when_pipeline_succeeds" # see https://docs.gitlab.com/ce/user/project/push_options.html # merge-when-pipeline-succeeds-alias pushmerge = "push -o merge_request.merge_when_pipeline_succeeds" # see https://docs.gitlab.com/ce/user/project/push_options.html # merge-when-pipeline-succeeds-alias

View file

@ -38,12 +38,10 @@ local function wrap_up()
if vim.v.count == 0 then return 'gk' end if vim.v.count == 0 then return 'gk' end
return 'k' return 'k'
end end
local function wrap_down() local function wrap_down()
if vim.v.count == 0 then return 'gj' end if vim.v.count == 0 then return 'gj' end
return 'j' return 'j'
end end
map.n.nore.expr['k'] = wrap_up map.n.nore.expr['k'] = wrap_up
map.n.nore.expr['j'] = wrap_down map.n.nore.expr['j'] = wrap_down
@ -185,7 +183,8 @@ map.x.nore.silent['<localleader>q'] = 'gq'
map.n.nore.silent['<localleader>Q'] = 'vapJgqap' map.n.nore.silent['<localleader>Q'] = 'vapJgqap'
-- Enter distraction free prose mode with F11 -- Enter distraction free prose mode with F11
map.n.nore.silent['<F11>'] = ':ZenMode<cr>' map.n.nore.silent['<F11>'] = ':TZAtaraxis<cr>'
map.n.nore.silent['<F10>'] = ':TZMinimalist<cr>'
-- PLUGIN: fzf-bibtex -- PLUGIN: fzf-bibtex
-- map @@ to automatically insert citation reference at cursor -- map @@ to automatically insert citation reference at cursor
@ -217,11 +216,11 @@ map.x['ga'] = '<Plug>(EasyAlign)'
map.n['ga'] = '<Plug>(EasyAlign)' map.n['ga'] = '<Plug>(EasyAlign)'
-- PLUGIN: Navigator.nvim -- PLUGIN: Navigator.nvim
map.n.nore.silent['<c-w>h'] = "<CMD>lua require('Navigator').left()<CR>" map.n.nore.silent['<c-h>'] = "<CMD>lua require('Navigator').left()<CR>"
map.n.nore.silent['<c-w>k'] = "<CMD>lua require('Navigator').up()<CR>" map.n.nore.silent['<c-k>'] = "<CMD>lua require('Navigator').up()<CR>"
map.n.nore.silent['<c-w>l'] = "<CMD>lua require('Navigator').right()<CR>" map.n.nore.silent['<c-l>'] = "<CMD>lua require('Navigator').right()<CR>"
map.n.nore.silent['<c-w>j'] = "<CMD>lua require('Navigator').down()<CR>" map.n.nore.silent['<c-j>'] = "<CMD>lua require('Navigator').down()<CR>"
map.n.nore.silent['<c-w>p'] = "<CMD>lua require('Navigator').previous()<CR>" map.n.nore.silent['<c-p>'] = "<CMD>lua require('Navigator').previous()<CR>"
-- PLUGIN: compe.nvim -- PLUGIN: compe.nvim
-- lsp keymaps are set in lsp settings, only for lsp buffers -- lsp keymaps are set in lsp settings, only for lsp buffers

View file

@ -35,7 +35,8 @@ local formatters = {
json = prettierfmt, json = prettierfmt,
lua = { lua = {
function() function()
return { exe = "lua-format", args = { "--indent-width", 4 }, stdin = true } return
{exe = "lua-format", args = {"--indent-width", 4}, stdin = true}
end end
}, },
python = {function() return {exe = "black", args = {"-"}, stdin = true} end}, python = {function() return {exe = "black", args = {"-"}, stdin = true} end},

View file

@ -102,8 +102,20 @@ require("packer").startup(function()
ft = { "quarto" } ft = { "quarto" }
} }
use 'micarmst/vim-spellsync' -- personal dict improvements for git sync use 'micarmst/vim-spellsync' -- personal dict improvements for git sync
use { 'folke/zen-mode.nvim', config = require('zen-mode').setup() } -- provide distraction free writing use { -- provide distraction free writing
use 'folke/twilight.nvim' -- provide even distraction free-er writing (lowlight paragraphs) 'Pocco81/TrueZen.nvim',
config = function()
require("true-zen").setup({
integrations = {
gitsigns = true,
lualine = true,
tmux = { global = false },
limelight = true
}
})
end
}
use { 'junegunn/limelight.vim', event = 'BufRead' } -- provide even distraction free-er writing (lowlight paragraphs)
use 'alok/notational-fzf-vim' -- quickly search through the wiki use 'alok/notational-fzf-vim' -- quickly search through the wiki
-- languages -- languages

View file

@ -8,7 +8,6 @@ c.url.searchengines = {
"aur": "https://aur.archlinux.org/packages/?K={}", "aur": "https://aur.archlinux.org/packages/?K={}",
"d": "https://www.dict.cc/?s={}", "d": "https://www.dict.cc/?s={}",
"ddg": "https://duckduckgo.com/?q={}", "ddg": "https://duckduckgo.com/?q={}",
"docker": "https://hub.docker.com/search?q={}",
"dt": "https://www.deepl.com/translator#en/de/{}", "dt": "https://www.deepl.com/translator#en/de/{}",
"g": "https://www.google.com/search?q={}", "g": "https://www.google.com/search?q={}",
"gh": "https://github.com/search?q={}", "gh": "https://github.com/search?q={}",