~zethra/dotfiles

35542931ba7c22ec2a1a501b82361ac449b929d2 — Ben Aaron Goldberg 3 months ago 85ed487
Update
M .config/nvim/.netrwhist => .config/nvim/.netrwhist +3 -3
@@ 1,5 1,6 @@
let g:netrw_dirhistmax  =10
let g:netrw_dirhistcnt =0
let g:netrw_dirhistcnt =1
let g:netrw_dirhist_1='/home/zethra/Projects/School/game-tutorial/src'
let g:netrw_dirhist_0='/home/zethra/Projects/Personal/poki-launcher/poki-krunner'
let g:netrw_dirhist_9='/home/zethra/Projects/Personal/poki-launcher/lib-poki-launcher'
let g:netrw_dirhist_8='/home/zethra/Projects/Personal/poki-launcher/poki-launcher'


@@ 8,5 9,4 @@ let g:netrw_dirhist_6='/home/zethra/font-wd'
let g:netrw_dirhist_5='/home/zethra/Projects/Personal/license/src/data_sources'
let g:netrw_dirhist_4='/home/zethra/.config/alacritty'
let g:netrw_dirhist_3='/home/zethra/Projects/Personal/gemini/pygmisrv/src'
let g:netrw_dirhist_2='/home/zethra/Projects/Personal/chaos-regex'
let g:netrw_dirhist_1='/home/zethra/Projects/Personal/linicon/freedesktop_entry_parser/src'
let g:netrw_dirhist_2='/home/zethra/Projects/School/game-tutorial/src'

M .config/nvim/coc-settings.json => .config/nvim/coc-settings.json +2 -0
@@ 3,6 3,7 @@
	"cSpell.userWords": [
    "Affero",
    "Bitwarden",
    "Condvar",
    "Deque",
    "Mmap",
    "Monoids",


@@ 65,6 66,7 @@
    "smol",
    "splitn",
    "structopt",
    "structs",
    "syscall",
    "tempfile",
    "terminfo",

M .config/nvim/init.vim => .config/nvim/init.vim +81 -57
@@ 1,14 1,18 @@
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')

" Declare the list of plugins.
" Colorscheme
Plug 'dracula/vim'
" Text navigation
Plug 'unblevable/quick-scope'
" Display indent level
Plug 'Yggdroot/indentLine'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
Plug 'vim-scripts/ReplaceWithRegister'
Plug 'christoomey/vim-sort-motion'
" System clipboard action
Plug 'christoomey/vim-system-copy'
Plug 'kana/vim-textobj-user'
Plug 'kana/vim-textobj-indent'


@@ 18,84 22,75 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug '/usr/share/vim/vimfiles/plugin/fzf.vim'
Plug 'jiangmiao/auto-pairs'
Plug 'mcchrish/nnn.vim'
" Better Syntax Support
Plug 'sheerun/vim-polyglot'
Plug 'alvan/vim-closetag'
Plug 'https://tildegit.org/sloum/gemini-vim-syntax.git'
Plug 'vim-airline/vim-airline'
" Git stuff
Plug 'tpope/vim-fugitive'
Plug 'mileszs/ack.vim'
Plug 'gpanders/vim-scdoc'
Plug 'cespare/vim-toml'
Plug 'dstein64/nvim-scrollview', { 'branch': 'main' }
" Smooth scrolling
Plug 'psliwka/vim-smoothie'
" Buffer buffer closing
Plug 'moll/vim-bbye'
" Editor config support
Plug 'editorconfig/editorconfig-vim'
" Highlight yanked
Plug 'machakann/vim-highlightedyank'

" List ends here. Plugins become visible to Vim after this call.
call plug#end()

" Set standard file encoding
set encoding=utf8
" No special per file vim override configs
set nomodeline
" Don't hide stuff
set conceallevel=0
" Stop word wrapping
set nowrap
" True color
set termguicolors
" Adjust system undo levels
set undolevels=500
" unbreak vim's regex implementation
set magic
" Use system clipboard
" set clipboard=unnamed
" Set tab width and convert tabs to spaces
set tabstop=4
" Automatically install missing plugins on startup
" autocmd VimEnter *
"   \  if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
"   \|   PlugInstall --sync | q
"   \| endif

set encoding=utf8                       " Set standard file encoding
set fileencoding=utf-8                  " The encoding written to file
set nomodeline                          " No special per file vim override configs
set conceallevel=0                      " Don't hide stuff
set hidden                              " Required to keep multiple buffers open multiple buffers
set nowrap                              " Display long lines as just one line
set termguicolors                       " True color
set undolevels=500                      " Adjust system undo levels
set magic                               " unbreak vim's regex implementation
set tabstop=4                           " Set tab width and convert tabs to spaces
set shiftwidth=4

function Tabs()
    set softtabstop=0
    set noexpandtab
endfunction

function Spaces()
    set softtabstop=4
    set expandtab
endfunction

call Tabs()

function TabToggle()
    if &expandtab
        call Tabs()
    else
        call Spaces()
    endif
endfunction
nmap <F9> mz:execute TabToggle()<CR>'z
" Don't let Vim hide characters or make loud dings
" set conceallevel=0
set noerrorbells
" Number gutter
set number
set smarttab                            " Makes tabbing smarter will realize you have 2 vs 4
set expandtab                           " Converts tabs to spaces
set smartindent                         " Makes indenting smart
set autoindent                          " Good auto indent
set noerrorbells                        " No bell sounds
set number                              " Lint numbers
set relativenumber
" Space above/beside cursor from screen edges
set scrolloff=7
set scrolloff=7                         " Space above/beside cursor from screen edges
set sidescrolloff=5
" Ruler at 81 characters
set cc=81
set cc=81                               " Ruler at 81 chars
set ruler

" Use search highlighting
set hlsearch
set cursorline                          " Enable highlighting of the current line
set iskeyword+=-                        " treat dash separated words as a word text object"
set formatoptions-=cro                  " Stop newline continuation of comments
set hlsearch                            " Use search highlighting
set incsearch
set showmatch

set splitbelow

set splitbelow                          " Horizontal splits will automatically be below
set splitright                          " Vertical splits will automatically be to the right
set ignorecase
set smartcase

set path+=**
set wildmenu
set nostartofline                       " Don't put the cursor at the begining of the line when switch between buffers
set inccommand=nosplit                  " Interactive substitute - don't use tmp split
au! BufWritePost $MYVIMRC source %      " auto source when writing to init.vm alternatively you can run :source $MYVIMRC

" You can't stop me
cmap w!! w !sudo tee %

filetype plugin indent on



@@ 123,13 118,16 @@ noremap <Leader>w :w<CR>
" Write buffer (save)
noremap <Leader>qq :x<CR>

" Write all buffers (save)
noremap <Leader>qa :xa<CR>

" Move between buffers with Alt-hjkl
noremap <M-h> <C-w>h
noremap <M-j> <C-w>j
noremap <M-k> <C-w>k
noremap <M-l> <C-w>l

noremap <C-w> :bd<CR>
noremap <C-w> :Bdelete<CR>

" Disabel entering ex mode on Q
nnoremap Q <Nop>


@@ 137,6 135,8 @@ nnoremap Q <Nop>
" Clear highlighting
nnoremap \ :noh<cr> 

tnoremap <Leader><esc> <C-\><C-N>

" Remember where you were in the file
if has("autocmd")
    au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | 


@@ 151,6 151,9 @@ let g:airline#extensions#tabline#enabled = 1

let g:ackprg = 'rg --vimgrep --smart-case'

" Trigger a highlight in the appropriate direction when pressing these keys:
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']

" Auto close the Quickfix list after pressing '<enter>' on a list item
let g:ack_autoclose = 1
" Any empty ack search will search for the work the cursor is on


@@ 163,6 166,27 @@ nnoremap <Leader>/ :Ack!<Space>
nnoremap <silent> [q :cprevious<CR>
nnoremap <silent> ]q :cnext<CR>

function Tabs()
    set softtabstop=0
    set noexpandtab
endfunction

function Spaces()
    set softtabstop=4
    set expandtab
endfunction

call Tabs()

function TabToggle()
    if &expandtab
        call Tabs()
    else
        call Spaces()
    endif
endfunction
nmap <F9> mz:execute TabToggle()<CR>'z

" Plugin config
color dracula


M .config/qutebrowser/autoconfig.yml => .config/qutebrowser/autoconfig.yml +2 -0
@@ 19,6 19,8 @@ settings:
  spellcheck.languages:
    global:
    - en-US
  tabs.background:
    global: false
  url.default_page:
    global: https://benaaron.dev
  url.searchengines:

M .config/topgrade.toml => .config/topgrade.toml +1 -1
@@ 5,7 5,7 @@
#]

# Same options as the command line flag
disable = ["emacs", "tlmgr", "go", "gem"]
disable = ["emacs", "tlmgr", "gem"]

# List of remote machines with Topgrade installed on them
#remote_topgrades = ["toothless", "pi", "parnas"]

M .local/bin/scripts/dev => .local/bin/scripts/dev +10 -1
@@ 23,11 23,17 @@ rust() {

case "$1" in
	'3')
		triple
		case "$2" in
			'rust')
				triple
				rust
				;;
			'')
				triple
				;;
			*)
				echo "Invalid arg $2"
				exit 1
		esac
		nvim
		;;


@@ 38,6 44,9 @@ case "$1" in
	'r')
		reset
		;;
	*)
		echo "Invalid arg $1"
		exit 1
esac



M .zshrc => .zshrc +9 -1
@@ 148,7 148,7 @@ alias scfd="scf diff"

# New source hut repo
alias shn='git remote add origin git@git.sr.ht:~zethra/${PWD##*/}'
alias aur_new='git remote add origin ssh://aur@aur.archlinux.org/${PWD##*/}.git'
alias aur-new='git remote add origin ssh://aur@aur.archlinux.org/${PWD##*/}.git'

# Unlock bitwarden and save session key
alias bwu='export BW_SESSION="$(bw unlock --raw)"'


@@ 192,5 192,13 @@ function br {
    eval "$d"
}

# copy sha256sum

pkgsum() {
	sha256sum "$1" | head -n1 | cut -f1 -d' ' | tr -d '\n' | copy
}


export GOPATH=$HOME/.cache/go

export CHROME_EXECUTABLE=/bin/chromium