summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-10-02 19:34:17 -0400
committerFrederick Yin <fkfd@fkfd.me>2023-10-02 19:34:17 -0400
commit6e44d40ea73eed40c62be52d0c649e15efb010f0 (patch)
tree264c341b8c3edb01a93183a7fbb1a42d4c878680
parent7cb6859fabde5d7a737fb3244b79acf8533e9b43 (diff)
final vimrc, zshrc, and kitty conf from bandito
-rw-r--r--.vimrc25
-rw-r--r--.zshrc2
-rw-r--r--kitty/kitty.conf7
3 files changed, 23 insertions, 11 deletions
diff --git a/.vimrc b/.vimrc
index 248be87..14bd21d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,5 +1,5 @@
-set nocompatible " be iMproved, required
-filetype on " required
+set nocompatible " be iMproved, required
+filetype on " required
set timeoutlen=1000
set ttimeoutlen=5
@@ -20,6 +20,7 @@ Plugin 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plugin 'nvim-lua/plenary.nvim'
Plugin 'nvim-telescope/telescope.nvim'
Plugin 'tpope/vim-surround'
+Plugin 'puremourning/vimspector'
" File types
Plugin 'neovimhaskell/haskell-vim'
Plugin 'peterhoeg/vim-qml'
@@ -36,10 +37,11 @@ Plugin 'vim-airline/vim-airline-themes'
Plugin 'azadkuh/vim-cmus'
" Fun
Plugin 'Eandrju/cellular-automaton.nvim'
+Plugin 'tamton-aquib/duck.nvim'
" All of your Plugins must be added before the following line
-call vundle#end() " required
-filetype plugin indent on " required
+call vundle#end() " required
+filetype plugin indent on " required
" Brief help
" :PluginList - lists configured plugins
@@ -70,6 +72,7 @@ autocmd FileType python set ts=4 sw=4 sts=4 expandtab
autocmd FileType markdown set ts=4 sw=4 sts=4 expandtab
autocmd FileType tex set ts=4 sw=4 sts=4 expandtab
autocmd FileType haskell set ts=4 sw=4 sts=4 expandtab
+autocmd FileType qml set ts=4 sw=4 sts=4 expandtab
autocmd FileType c,cpp,asm set ts=8 sw=8 sts=8 noexpandtab
set autoindent smartindent
@@ -82,7 +85,7 @@ highlight Pmenu guibg=#282C34
highlight PmenuSel guibg=#61AFEF
" Generic shortcuts
-inoremap <C-s> <esc>:w<CR>i<right>
+inoremap <C-s> <esc>:w<CR>a
nnoremap <leader>\ :noh<CR>
autocmd FileType python nnoremap <leader>b :!black %<CR>:e<CR>
autocmd FileType c,cpp nnoremap <leader>b :pyf /usr/share/clang/clang-format.py<CR>
@@ -117,9 +120,7 @@ let g:NERDToggleCheckAllLines = 1
let g:vimtex_view_general_viewer = 'okular'
let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex'
let g:vimtex_compiler_method = 'latexmk'
-let g:vimtex_compiler_latexmk = {
- \'options': ['-shell-escape']
-\}
+let g:vimtex_compiler_latexmk = {'options': ['-shell-escape']}
" nvim-tree
nnoremap <leader>e :NvimTreeToggle<CR>
@@ -134,8 +135,8 @@ let g:pencil#map#suspend_af = 'K'
let g:pencil#textwidth = 74
augroup pencil
autocmd!
- " autocmd FileType markdown,mkd call pencil#init()
- autocmd FileType text call pencil#init()
+ " autocmd FileType markdown,mkd call pencil#init()
+ autocmd FileType text call pencil#init()
augroup END
" vim-workspace
@@ -146,3 +147,7 @@ let g:workspace_autosave = 0
" vim-cmus
nnoremap <leader>c :Cmus<CR>
+
+" duck.nvim
+nnoremap <leader>dd :lua require("duck").hatch()<CR>
+nnoremap <leader>dk :lua require("duck").cook()<CR>
diff --git a/.zshrc b/.zshrc
index b353b40..168ffa1 100644
--- a/.zshrc
+++ b/.zshrc
@@ -77,7 +77,7 @@ alias ytdl="youtube-dl --proxy socks5://localhost:1080/"
alias ytdlp="yt-dlp --proxy socks5://localhost:1080/"
alias v="nvim"
alias c="cat"
-alias ls="exa"
+alias ls="eza"
alias dormshare="sudo python -m http.server -b 192.168.8.2 80"
alias scanto="scanimage -d 'hpaio:/usb/HP_LaserJet_Professional_M1219nf_MFP?serial=000000000QJA9XJFPR1a' --source Flatbed --format=jpeg --mode=Gray --resolution=200 -x 210 -y 297 -o "
diff --git a/kitty/kitty.conf b/kitty/kitty.conf
index 9ae80e2..e1aabf6 100644
--- a/kitty/kitty.conf
+++ b/kitty/kitty.conf
@@ -13,10 +13,17 @@ enable_audio_bell no
open_url_with firefox
mouse_map ctrl+left click grabbed,ungrabbed mouse_click_url_or_select
+mouse_map left click no_op
+map ctrl+shift+9 combine : launch --cwd=current : goto_layout tall
+map ctrl+shift+0 combine : launch --cwd=current : goto_layout fat
+map ctrl+shift+left previous_window
+map ctrl+shift+right next_window
map ctrl+shift+enter new_os_window_with_cwd
map ctrl+shift+t new_tab_with_cwd
map shift+left previous_tab
map shift+right next_tab
+map ctrl+shift+f5 load_config_file
+
tab_bar_style slant