This commit is contained in:
kento2 2026-07-30 15:47:38 +02:00
parent 856e135e63
commit 16c7b23408
7 changed files with 63 additions and 8 deletions

View file

@ -0,0 +1,25 @@
vim.g.mapleader = " "
vim.g.maplocalleader = ","
vim.cmd.colorscheme("lunaperche")
vim.opt.smarttab = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.clipboard = "unnamedplus" -- use system clipboard
vim.pack.add{
{ src = 'https://github.com/neovim/nvim-lspconfig' },
{ src = 'https://github.com/junegunn/fzf.vim' },
}
vim.lsp.config('chicken', {
cmd = {'chicken-lsp-server'},
filetypes = {'scheme'},
root_markers = {'Makefile', 'build.meson', '.git'},
})
vim.lsp.enable('chicken')
vim.lsp.enable('clangd')
vim.lsp.enable('lua_ls')
vim.keymap.set("n", "<leader>b", "<cmd>Buffers<CR>")
vim.keymap.set("n", "<leader>f", "<cmd>Files<CR>")

View file

@ -0,0 +1,12 @@
{
"plugins": {
"fzf.vim": {
"rev": "d2a59a992a2455f609c0fde2ebd84427ea8f919a",
"src": "https://github.com/junegunn/fzf.vim"
},
"nvim-lspconfig": {
"rev": "d592c1e6ad9a0a01b3d5ed3f0345d68407167181",
"src": "https://github.com/neovim/nvim-lspconfig"
}
}
}

View file

@ -24,7 +24,7 @@ local colors = {
['bwht'] = '#c0c0c0', ['bwht'] = '#c0c0c0',
-- special colors -- special colors
['dim1'] = '#111111', ['dim1'] = '#555555',
['dim2'] = '#010101' ['dim2'] = '#010101'
} }

View file

@ -15,7 +15,8 @@ local plugins = {
plug.init(plugins, true) plug.init(plugins, true)
vis.events.subscribe(vis.events.INIT, function() vis.events.subscribe(vis.events.INIT, function()
vis:command("set theme kento2") --vis:command("set theme kento2")
vis:command("set theme plain2")
vis.options.autoindent = true vis.options.autoindent = true
vis.options.breakat = " " vis.options.breakat = " "
@ -62,20 +63,25 @@ vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.VISUAL, ' g', function() vis:map(vis.modes.VISUAL, ' g', function()
vis:command("grep") vis:command("grep")
vis:redraw()
end) end)
vis:map(vis.modes.NORMAL, ' f', function() vis:map(vis.modes.NORMAL, ' f', function()
vis:command("!make; read a") vis:command("!make; read a")
vis:redraw()
end) end)
vis:map(vis.modes.NORMAL, 'mm', function() vis:map(vis.modes.NORMAL, 'mm', function()
vis:command("!make; read a") vis:command("!make; read a")
vis:redraw()
end) end)
vis:map(vis.modes.NORMAL, 'mc', function() vis:map(vis.modes.NORMAL, 'mc', function()
vis:command("!make check; read a") vis:command("!make check; read a")
vis:redraw()
end) end)
vis:map(vis.modes.NORMAL, 'mt', function() vis:map(vis.modes.NORMAL, 'mt', function()
vis:command("!make test; read a") vis:command("!make test; read a")
vis:redraw()
end) end)
end) end)

View file

@ -7,3 +7,15 @@ export EDITOR=/usr/bin/vis
export XBPS_DISTDIR="$HOME/void-packages" export XBPS_DISTDIR="$HOME/void-packages"
export CHEZSCHEMELIBDIRS="/usr/local/lib/csv10.3.0/":"$CHEZSCHEMELIBDIRS" export CHEZSCHEMELIBDIRS="/usr/local/lib/csv10.3.0/":"$CHEZSCHEMELIBDIRS"
is_login() {
echo "$-" | grep -q l && test "$(tty)" = '/dev/tty1'
}
if is_login; then
cd
echo 'Press return to start gui'
read && exec startx
fi
# OPS config
export OPS_DIR="$HOME/.ops"
export PATH="$HOME/.ops/bin:$PATH"

View file

@ -5,6 +5,7 @@ export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig
export XKB_DEFAULT_LAYOUT=de export XKB_DEFAULT_LAYOUT=de
export XBPS_DISTDIR="$HOME/void-packages" export XBPS_DISTDIR="$HOME/void-packages"
export GOPHER=/usr/local/bin/sacc
export EDITOR=/usr/bin/vis export EDITOR=/usr/bin/vis
export CHEZSCHEMELIBDIRS="/usr/local/lib/csv10.3.0/":"$CHEZSCHEMELIBDIRS" export CHEZSCHEMELIBDIRS="/usr/local/lib/csv10.3.0/":"$CHEZSCHEMELIBDIRS"

View file

@ -9,10 +9,10 @@ PS1='%B%m%(?.. %??)%(1j. %j&.)%b %2~%B%#%b '
setopt histignoredups histignorespace incappendhistory extendedhistory setopt histignoredups histignorespace incappendhistory extendedhistory
SAVEHIST=9000 HISTSIZE=9000 HISTFILE=~/.zsh_history SAVEHIST=9000 HISTSIZE=9000 HISTFILE=~/.zsh_history
# minimal functions, 08sep2017 +leah+ # minimal functions, 08sep2017 +leah+
g() { LC_ALL=C grep --exclude "*~" -r -P ${@:?regexp missing} } g() { LC_ALL=C grep --exclude "*~" -r -P ${@:?regexp missing}; }
sprunge() { cat $@ | curl -sF 'sprunge=<-' http://sprunge.us } sprunge() { cat $@ | curl -sF 'sprunge=<-' http://sprunge.us; }
# minimal functions, 02mar # minimal functions, 02mar
mkcd() { mkdir -p "$1"; cd "$1" } mkcd() { mkdir -p "$1"; cd "$1"; }
set -o emacs set -o emacs
@ -27,14 +27,13 @@ test -d ~/Downloads && rmdir ~/Downloads
kcdp() { kcdp() {
name="`lr -A -t 'depth > 3 ? prune : print' -t 'type=d' "$HOME/src" -s | fzy`" name="`lr -A -t 'depth > 3 ? prune : print' -t 'type=d' "$HOME/src" -s | fzy`"
cd "$HOME/src/$name" test $? -eq 0 && cd "$HOME/src/$name"
} }
kmktags() { ctags `lr -A -t 'name=~".(ch)$"'` } kmktags() { ctags `lr -A -t 'name=~".(ch)$"'`; }
alias xi='doas xi -y' alias xi='doas xi -y'
alias vi='vis' alias vi='vis'
alias xr='doas xbps-remove -y' alias xr='doas xbps-remove -y'
alias kpc='pass -c' alias kpc='pass -c'
alias kp='pass' alias kp='pass'
alias nman='man -M /usr/local/netbsd-man' alias nman='man -M /usr/local/netbsd-man'