ditch nnn, use oil (enough), fix topgrade

main
Steffen Rademacker 3 months ago
parent a480af805a
commit 1bf3fb229d

@ -12,7 +12,6 @@ brew install fzf
brew install imagemagick
brew install jump
brew install lazygit
brew install nnn
brew install ocrmypdf
brew install ripgrep
brew install spotifyd
@ -21,9 +20,6 @@ brew install topgrade
brew install tree
brew install viu
# nnn plugins
curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs | sh
ln -s ~/dotfiles/lazygit ~/.config/lazygit
ln -s ~/dotfiles/starship.toml ~/.config/starship.toml
ln -s ~/dotfiles/topgrade.toml ~/.config/topgrade.toml

@ -63,8 +63,8 @@ require('lazy').setup({
{ 'windwp/nvim-autopairs', event = 'InsertEnter', config = true },
-- more plugins and integrations
{ 'stevearc/oil.nvim', config = get_config('oil'), dependencies = { 'nvim-tree/nvim-web-devicons' } },
{ 'nvim-pack/nvim-spectre', dependencies = 'nvim-lua/plenary.nvim', config = true },
{ 'voldikss/vim-floaterm', config = get_config('floaterm') },
{ 'mfussenegger/nvim-lint', config = get_config('lint') },
{ 'stevearc/conform.nvim', event = 'BufWritePre', config = get_config('conform') },
{ 'nvim-neorg/neorg',
@ -75,15 +75,15 @@ require('lazy').setup({
{ 'github/copilot.vim' },
-- { 'zbirenbaum/copilot.lua', event = 'InsertEnter', config = get_config('copilot') },
-- { 'zbirenbaum/copilot-cmp', config = true },
{ 'jackMort/ChatGPT.nvim',
event = 'VeryLazy',
dependencies = {
'MunifTanjim/nui.nvim',
'nvim-lua/plenary.nvim',
'nvim-telescope/telescope.nvim'
},
config = true,
},
-- { 'jackMort/ChatGPT.nvim',
-- event = 'VeryLazy',
-- dependencies = {
-- 'MunifTanjim/nui.nvim',
-- 'nvim-lua/plenary.nvim',
-- 'nvim-telescope/telescope.nvim'
-- },
-- config = true,
-- },
})
-- general sane vim options

@ -1,14 +0,0 @@
local g = vim.g
local createCmd = vim.api.nvim_create_autocmd
g.floaterm_width = 0.9
g.floaterm_height = 0.9
g.floaterm_autoclose = 1
g.floaterm_opener = 'edit'
g.floaterm_borderchars = '─│─│╭╮╯╰'
g.floaterm_title = ''
createCmd({ 'VimEnter' }, {
pattern = { '*' },
command = "highlight FloatermBorder guibg='#282828' guifg='#fbf1c7'",
})

@ -0,0 +1,16 @@
require('oil').setup({
columns = {
'mtime',
'permissions',
'size',
'icon',
},
delete_to_trash = true,
view_options = {
show_hidden = true,
},
keymaps = {
["<esc>"] = "actions.close",
["q"] = "actions.close",
},
})

@ -4,7 +4,7 @@ vim.opt.timeout = true
vim.opt.timeoutlen = 500
wk.register({
['-'] = { '<cmd>FloatermNew nnn<cr>', 'invoke floaterm with nnn as file picker' },
['-'] = { '<cmd>Oil<cr>', 'Open file browser in parent directory' },
[';'] = { ':', 'Colon with semicolon' },
['<F5>'] = { '<cmd>checktime<cr><cmd>redraw!<cr>', 'redraw/reload with F5' },
['<down>'] = { '<cmd>blast<cr>', 'buffer navigation with arrow keys' },
@ -64,8 +64,6 @@ wk.register({
b = { '<cmd>Telescope git_branches<cr>', 'git branches' },
c = { '<cmd>Telescope git_bcommits<cr>', 'commits for buffer' },
f = { '<cmd>Spectre<cr>', 'open spectre for search/replace' },
l = { '<cmd>FloatermNew lazygit<cr>', 'open lazygit' },
t = { '<cmd>FloatermNew<cr>', 'open new terminal' },
v = {
name = 'vim related',
e = { '<cmd>e $MYVIMRC<cr>', 'edit vimrc' },

@ -1,21 +1,22 @@
alias -- -='$EDITOR $(fzf)'
alias ...='cd ../..'
alias ..='cd ..'
alias O="cd ~ && mbsync -a && mu index"
alias g="git"
alias gd="git diff"
alias O='cd ~ && mbsync -a && mu index'
alias g='git'
alias gd='git diff'
alias ggpl='git pull origin $(current_branch)'
alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
alias ggps='git push origin $(current_branch)'
alias gmo='$EDITOR $(git ls-files -m)'
alias gs="git status"
alias gs='git status'
alias l='nvim "+Oil"'
alias lg='lazygit'
alias m='neomutt'
alias mutt='neomutt'
alias nb="npm run build"
alias np="npm run lint && npm run production"
alias nb='npm run build'
alias np='npm run lint && npm run production'
alias nre='n engine && rm -f package-lock.json && rm -rf node_modules && npm install'
alias ns="npm start"
alias ns='npm start'
alias q='exit'
alias sudo='sudo '
alias to='tiptop --net en0'
@ -27,7 +28,7 @@ alias vi=$EDITOR
alias ocrpdf='convert *.jpg -auto-orient temp.pdf && ocrmypdf --rotate-pages --optimize 3 --jpeg-quality 70 temp.pdf ocr.pdf'
alias vim=$EDITOR
alias vimdiff='$EDITOR -d'
alias vimup='nvim +TSUpdate'
alias vimup='nvim --headless "+TSUpdateSync" +qa && nvim --headless "+Lazy! sync" +qa'
alias yb='yarn build'
alias yp='yarn lint && yarn production'
alias yre='n engine > /dev/null && rm -f yarn.lock && rm -rf node_modules && yarn'

@ -26,15 +26,6 @@ export RIPGREP_CONFIG_PATH="$HOME/dotfiles/ripgreprc"
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
export HOMEBREW_NO_ENV_HINTS=true
# nnn
export NNN_OPTS='deHR'
export NNN_BMS='a:~/Sites;s:~/Dotfiles;d:~/Downloads;h:~/'
export NNN_FCOLORS='c1e26c2e006033f5c6d6abc4'
export NNN_PLUG='p:preview-tui;j:autojump'
export NNN_FIFO='/Users/webgefrickel/.local/share/nnn/nnn.fifo'
export NNN_TRASH=0
export NNN_ARCHIVE="\\.(7z|bz|bz2|gz|rar|rpm|tar|tgz|zip)$"
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"

@ -1,20 +1,3 @@
# nnn terminal integration
l () {
if [ -n $NNNLVL ] && [ "${NNNLVL:-0}" -ge 1 ]; then
echo "nnn is already running"
return
fi
export NNN_TMPFILE="${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.lastd"
nnn "$@"
if [ -f "$NNN_TMPFILE" ]; then
. "$NNN_TMPFILE"
rm -f "$NNN_TMPFILE" > /dev/null
fi
}
# s as in 'show' / quicklook script
s () {
trap 'exit 0' 2 #traps Ctrl-C (signal 2)

@ -20,6 +20,7 @@ zi snippet PZTM::completion
# Fixes for unicode
setopt COMBINING_CHARS
setopt NO_HUP # fixes topgrade
# additional gruvbox colors
source ~/.local/share/nvim/lazy/gruvbox-baby/extras/bash/MEDIUM.bash

Loading…
Cancel
Save