1
0
Fork 0

minor fixes

This commit is contained in:
Luca Bilke 2022-09-27 10:49:07 +02:00
parent af545f7936
commit f504cc7c40
3 changed files with 11 additions and 2 deletions
.config/lvim
.local/bin

View file

@ -20,6 +20,7 @@ vim.opt.foldlevelstart = 99
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
lvim.format_on_save = false
lvim.line_wrap_cursor_movement = false
lvim.transparent_window = true
-- Vimwiki Settings
vim.g.vimwiki_ext2syntax = { ['.Rmd'] = 'markdown', ['.rmd'] = 'markdown', ['.md'] = 'markdown',
@ -47,6 +48,14 @@ formatters.setup {
{ command = "black", filetypes = { "python" } },
}
local linters = require "lvim.lsp.null-ls.linters"
linters.setup {
{
command = "shellcheck",
args = { "--severity", "warning" },
},
}
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
vim.api.nvim_create_autocmd({ "BufEnter", "FocusGained", "InsertLeave", "WinEnter" }, {
pattern = "*",

View file

@ -36,7 +36,7 @@ case "$ext" in
cs) mcs "$file" && mono "$base".exe ;;
go) go run "$file" ;;
h) sudo make install ;;
java) javac -d classes "$file" && java -cp classes "${1%.*}" ;;
java) java -d classes "$file" && java -cp classes "${1%.*}" ;;
m) octave "$file" ;;
md) if [ -x "$(command -v lowdown)" ]; then
lowdown --parse-no-intraemph "$file" -Tms | groff -mpdfmark -ms -kept > "$base".pdf

View file

@ -1,6 +1,6 @@
#!/bin/sh
setxkbmap -layout de,us -variant nodeadkeys,dvp -option caps:super -option terminate:ctrl_alt_bksp
setxkbmap -layout de,us -variant nodeadkeys,dvorak -option caps:super -option terminate:ctrl_alt_bksp
xset r rate 300 50
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock