This commit is contained in:
Bryan Ramos 2024-01-30 10:10:42 -05:00
parent e513913099
commit 429fbc0d63
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
4 changed files with 42 additions and 23 deletions

View file

@ -13,7 +13,6 @@ autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| endif \| endif
call plug#begin('~/.vim/plugged') call plug#begin('~/.vim/plugged')
Plug 'joshdick/onedark.vim' Plug 'joshdick/onedark.vim'
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'jiangmiao/auto-pairs' Plug 'jiangmiao/auto-pairs'
@ -22,16 +21,26 @@ call plug#begin('~/.vim/plugged')
Plug 'mtdl9/vim-log-highlighting' Plug 'mtdl9/vim-log-highlighting'
Plug 'machakann/vim-highlightedyank' Plug 'machakann/vim-highlightedyank'
Plug 'itchyny/lightline.vim' Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-fugitive'
Plug 'mhinz/vim-signify'
call plug#end() call plug#end()
let mapleader = " " let mapleader = "\<Space>"
colorscheme onedark colorscheme onedark
highlight CursorLine ctermbg=NONE guibg=NONE
highlight CursorLineNr ctermfg=magenta guifg=magenta
highlight HighlightedyankRegion ctermfg=NONE guifg=NONE
highlight Normal ctermbg=NONE guibg=NONE
highlight NormalNC ctermbg=NONE guibg=NONE
highlight Search ctermfg=yellow guifg=yellow
highlight Search ctermbg=black guibg=black
let g:highlightedyank_highlight_duration = 80
let g:lightline = { 'colorscheme': 'one', }
let $FZF_DEFAULT_OPTS = '--bind=tab:up,shift-tab:down' let $FZF_DEFAULT_OPTS = '--bind=tab:up,shift-tab:down'
let g:fzf_layout = { 'window': 'enew' } let g:fzf_layout = { 'window': 'enew' }
let g:highlightedyank_highlight_duration = 80
let g:lightline = { 'colorscheme': 'one', }
set laststatus=2 set laststatus=2
@ -49,20 +58,29 @@ set tabstop=2
set shiftwidth=2 set shiftwidth=2
set expandtab set expandtab
highlight CursorLine ctermbg=NONE guibg=NONE
highlight CursorLineNr ctermfg=magenta guifg=magenta
highlight HighlightedyankRegion ctermfg=NONE guifg=NONE
highlight Normal ctermbg=NONE guibg=NONE
highlight NormalNC ctermbg=NONE guibg=NONE
highlight Search ctermfg=yellow guifg=yellow
highlight Search ctermbg=black guibg=black
vnoremap < <gv vnoremap < <gv
vnoremap > >gv vnoremap > >gv
nnoremap <C-U> <C-U>zz nnoremap <C-U> <C-U>zz
nnoremap <C-D> <C-D>zz nnoremap <C-D> <C-D>zz
nnoremap <leader>gs :Git status<CR>
nnoremap <leader>gl :Git log<CR>
nnoremap <leader>ga :Git add<CR>
nnoremap <leader>gc :Git commit<CR>
nnoremap <leader>gd :Git diff<CR>
nnoremap <leader>e :Explore<CR> nnoremap <leader>e :Explore<CR>
nnoremap <leader><ESC> :noh<CR>
nnoremap <leader>/ :Rg<Space> nnoremap <leader>/ :Rg<Space>
nnoremap <leader>bd :bd<CR>
nnoremap H :bprevious<CR>
nnoremap L :bnext<CR>
nnoremap <leader>wh :split<CR>
nnoremap <leader>wv :vsplit<CR>
nnoremap <leader>wd :q<CR>
nnoremap <leader>ww :wincmd w<CR>
nnoremap <leader>wW :wincmd W<CR>
nnoremap <Leader>ts :execute "normal! a" . strftime('[%b %d %H:%M:%S - BR]')<CR> nnoremap <Leader>ts :execute "normal! a" . strftime('[%b %d %H:%M:%S - BR]')<CR>
nnoremap <leader><ESC> :noh<CR>

View file

@ -11,8 +11,9 @@ in
packages = with pkgs; [ packages = with pkgs; [
vim vim
]; ];
file.".config/.vimrc" = { file.".vim" = {
source = ./config/vimrc; source = ./config;
recursive = true;
}; };
}; };
programs.bash.shellAliases = { programs.bash.shellAliases = {