mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
Compare commits
No commits in common. "d21cb1cdb1bd40ca5c7faa527e19256ed9bc3ae2" and "5a872f8a3c1382a07db2dc373ec928a51c5e6c76" have entirely different histories.
d21cb1cdb1
...
5a872f8a3c
@ -40,18 +40,20 @@ endif
|
|||||||
|
|
||||||
" Run PlugInstall if there are missing plugins
|
" Run PlugInstall if there are missing plugins
|
||||||
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
|
||||||
\| PlugInstall --sync | source '~/.vimrc'
|
\| PlugInstall --sync | source $MYVIMRC
|
||||||
\| endif
|
\| endif
|
||||||
|
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
|
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'mhinz/vim-startify'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'kristijanhusak/vim-carbon-now-sh'
|
||||||
Plug 'tpope/vim-surround'
|
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
Plug 'ryanoasis/vim-devicons'
|
Plug 'ryanoasis/vim-devicons'
|
||||||
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'pechorin/any-jump.vim'
|
Plug 'pechorin/any-jump.vim'
|
||||||
|
Plug 'tpope/vim-commentary'
|
||||||
|
Plug 'shime/vim-livedown'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'ap/vim-css-color'
|
Plug 'ap/vim-css-color'
|
||||||
Plug 'ap/vim-buftabline'
|
Plug 'ap/vim-buftabline'
|
||||||
@ -65,9 +67,6 @@ Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|||||||
Plug 'maximbaz/lightline-ale'
|
Plug 'maximbaz/lightline-ale'
|
||||||
Plug 'liuchengxu/vim-which-key', { 'on': ['WhichKey', 'WhichKey!'] }
|
Plug 'liuchengxu/vim-which-key', { 'on': ['WhichKey', 'WhichKey!'] }
|
||||||
Plug 'osyo-manga/vim-over'
|
Plug 'osyo-manga/vim-over'
|
||||||
Plug 'voldikss/vim-floaterm'
|
|
||||||
" Plug 'windwp/vim-floaterm-repl'
|
|
||||||
|
|
||||||
" colorschemes
|
" colorschemes
|
||||||
Plug 'joshdick/onedark.vim'
|
Plug 'joshdick/onedark.vim'
|
||||||
Plug 'kaicataldo/material.vim', { 'branch': 'main' }
|
Plug 'kaicataldo/material.vim', { 'branch': 'main' }
|
||||||
@ -577,23 +576,12 @@ nnoremap <leader><nowait> <space>ci :<C-U>CocCommand fzf-preview.CocImplementat
|
|||||||
"which key
|
"which key
|
||||||
"------------------------------------------------------------------------------
|
"------------------------------------------------------------------------------
|
||||||
set timeoutlen=400
|
set timeoutlen=400
|
||||||
"------------------------------------------------------------------------------
|
|
||||||
" dadbod ui
|
|
||||||
"------------------------------------------------------------------------------
|
|
||||||
let g:db_ui_save_location = '~/.sql'
|
|
||||||
"------------------------------------------------------------------------------
|
|
||||||
" Floaterm
|
|
||||||
"------------------------------------------------------------------------------
|
|
||||||
let g:floaterm_width = 0.80
|
|
||||||
let g:floaterm_height = 0.88
|
|
||||||
let g:floaterm_opener = 'vsplit'
|
|
||||||
let g:floaterm_autoclose = 1
|
|
||||||
"------------------------------------------------------------------------------
|
"------------------------------------------------------------------------------
|
||||||
" custom commands
|
" custom commands
|
||||||
"------------------------------------------------------------------------------
|
"------------------------------------------------------------------------------
|
||||||
command! Reload execute "source ~/.vimrc"
|
command! Reload execute "source ~/.vimrc"
|
||||||
command! Config execute ":e ~/.vimrc"
|
command! Config execute ":e ~/.vimrc"
|
||||||
command! Env execute ":Dotenv .env"
|
|
||||||
"------------------------------------------------------------------------------
|
"------------------------------------------------------------------------------
|
||||||
"KEYBINDINGS
|
"KEYBINDINGS
|
||||||
"------------------------------------------------------------------------------
|
"------------------------------------------------------------------------------
|
||||||
@ -604,25 +592,24 @@ nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR>
|
|||||||
map <F5> :!
|
map <F5> :!
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
map <C-l> :LivedownToggle<CR>
|
map <C-l> :LivedownToggle<CR>
|
||||||
" nnoremap <C-T> :wa<CR>:vertical botright term ++kill=term<CR>
|
nnoremap <C-T> :wa<CR>:vertical botright term ++kill=term<CR>
|
||||||
nnoremap <C-T> :wa<CR>:FloatermToggle<CR>
|
|
||||||
" fzf
|
" fzf
|
||||||
nmap // :CocCommand fzf-preview.Lines<CR>
|
nmap // :CocCommand fzf-preview.Lines<CR>
|
||||||
nmap ?? :CocCommand fzf-preview.BufferLines<CR>
|
nmap ?? :CocCommand fzf-preview.BufferLines<CR>
|
||||||
" search fzf, refs, impls, defs
|
" search fzf, refs, impls, defs
|
||||||
nmap <leader>ff :FloatermNew --title=fzf fzf<CR>
|
nmap <leader>sf :FZF<CR>
|
||||||
" buffers
|
" buffers
|
||||||
nmap <leader>bB :CocCommand fzf-preview.AllBuffers<CR>
|
|
||||||
nmap <leader>bb :CocCommand fzf-preview.Buffers<CR>
|
nmap <leader>bb :CocCommand fzf-preview.Buffers<CR>
|
||||||
|
nmap <leader>bB :CocCommand fzf-preview.AllBuffers<CR>
|
||||||
nmap <leader>bk :bdelete<CR>
|
nmap <leader>bk :bdelete<CR>
|
||||||
nmap <leader>bn :bnext<CR>
|
nmap <leader>bn :bnext<CR>
|
||||||
nmap <leader>bp :bprev<CR>
|
nmap <leader>bp :bprev<CR>
|
||||||
map <C-J> :bnext<CR>
|
map <C-J> :bnext<CR>
|
||||||
map <C-K> :bprev<CR>
|
map <C-K> :bprev<CR>
|
||||||
" git
|
" git
|
||||||
|
nmap <leader>gg :tab term ++close lazygit<CR>
|
||||||
nmap <leader>gc :CocCommand fzf-preview.GitLogs<CR>
|
nmap <leader>gc :CocCommand fzf-preview.GitLogs<CR>
|
||||||
nmap <leader>gf :CocCommand fzf-preview.GitFiles<CR>
|
nmap <leader>gf :CocCommand fzf-preview.GitFiles<CR>
|
||||||
nmap <leader>gg :FloatermNew --title=lazygit lazygit<CR>
|
|
||||||
nmap <leader>gs :CocCommand fzf-preview.GitStatus<CR>
|
nmap <leader>gs :CocCommand fzf-preview.GitStatus<CR>
|
||||||
" help
|
" help
|
||||||
nmap <leader>hc :CocCommand fzf-preview.CommandPalette<CR>
|
nmap <leader>hc :CocCommand fzf-preview.CommandPalette<CR>
|
||||||
@ -630,12 +617,9 @@ nmap <leader>hk :Maps<CR>
|
|||||||
" any jump plugin
|
" any jump plugin
|
||||||
nmap <leader>j :AnyJump<CR>
|
nmap <leader>j :AnyJump<CR>
|
||||||
" toggle/open
|
" toggle/open
|
||||||
nmap <leader>ob :FloatermNew --title=bpytop bpytop<CR>
|
nmap <leader>on :NERDTreeToggle<CR>
|
||||||
nmap <leader>od :FloatermNew --title=lazydocker lazydocker<CR>
|
nmap <leader>ot :vertical botright ter ++kill=terminal ++close<CR>
|
||||||
nmap <leader>on :FloatermNew --title=ncmpcpp ncmpcpp<CR>
|
|
||||||
nmap <leader>oo :OverCommandLine<CR>
|
nmap <leader>oo :OverCommandLine<CR>
|
||||||
nmap <leader>or :FloatermNew --title=ranger ranger --cmd="cd $PWD"<CR>
|
|
||||||
nmap <leader>ot :vertical botright ter ++kill=terminal ++close<CR>
|
|
||||||
" search
|
" search
|
||||||
nmap <leader>sc :nohls<Cr>
|
nmap <leader>sc :nohls<Cr>
|
||||||
"toggle coc outline
|
"toggle coc outline
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Emacs text editor
|
|
||||||
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=forking
|
|
||||||
ExecStart=/usr/bin/emacs --daemon
|
|
||||||
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
|
|
||||||
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
|
|
||||||
Restart=on-failure
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=enable wallpaper change notifications
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=sed -ie '252s/#//' /home/sudacode/.config/variety/scripts/set_wallpaper
|
|
||||||
User=dedicated-user
|
|
||||||
Group=dedicated-user
|
|
@ -1,7 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=enable pihole network after work
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=nmcli conn up wg0
|
|
||||||
ExecStart=nmcli conn up IndianWay
|
|
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Enable pihole
|
|
||||||
RefuseManualStart=no
|
|
||||||
RefuseManualStop=no
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=Mon..Fri 17:30:00
|
|
||||||
Persistent=true
|
|
||||||
Unit=end-work-network.service
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
@ -1,6 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=enable wallpaper change notifications
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=sed -ie '252s/#//' /home/sudacode/.config/variety/scripts/set_wallpaper
|
|
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Enable wallpaper notifications after work
|
|
||||||
RefuseManualStart=no
|
|
||||||
RefuseManualStop=no
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=Mon..Fri 17:30:00
|
|
||||||
Persistent=true
|
|
||||||
Unit=end-work-wallpaper.service
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=EOS update notifier service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
Environment=DISPLAY=:0
|
|
||||||
ExecStart=/usr/bin/eos-update-notifier -systemd
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=eos-update-notifier.timer
|
|
@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=EOS update notifier service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
Environment=DISPLAY=:0
|
|
||||||
ExecStart=/usr/bin/eos-update-notifier -systemd
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=eos-update-notifier.timer
|
|
@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Run EOS update notifier periodically
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnStartupSec=30 seconds
|
|
||||||
OnCalendar=daily
|
|
||||||
Persistent=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Run EOS update notifier periodically
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnStartupSec=30 seconds
|
|
||||||
OnCalendar=daily
|
|
||||||
Persistent=true
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
@ -1,5 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Kill Teams after work (5:30 PM)
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=killall teams
|
|
@ -1,10 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Kill teams after work (5:30 PM)
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=Mon..Fri 17:30:00
|
|
||||||
Persistent=true
|
|
||||||
Unit=kill-teams.service
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=SSH key agent
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=simple
|
|
||||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
|
||||||
# DISPLAY required for ssh-askpass to work
|
|
||||||
Environment=DISPLAY=:0
|
|
||||||
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=default.target
|
|
@ -1,7 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=disable pihole
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStartPre=nmcli conn down wg0
|
|
||||||
ExecStart=nmcli conn up NoPihole
|
|
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Disable pihole DNS and wireguard VPN
|
|
||||||
RefuseManualStart=no
|
|
||||||
RefuseManualStop=no
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=Mon..Fri 7:30:00
|
|
||||||
Persistent=true
|
|
||||||
Unit=start-work-network.service
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
@ -1,6 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=disable wallpaper change notifications
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=sed -ie '252s/^/#/' /home/sudacode/.config/variety/scripts/set_wallpaper
|
|
@ -1,12 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Disable wallpaper change notifications
|
|
||||||
RefuseManualStart=no
|
|
||||||
RefuseManualStop=no
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnCalendar=Mon..Fri 7:30:00
|
|
||||||
Persistent=true
|
|
||||||
Unit=start-work-wallpaper.service
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
Loading…
Reference in New Issue
Block a user