Skip to content

Commit

Permalink
zshrc: add quotes and add update nvim/init.vim
Browse files Browse the repository at this point in the history
nvim:
* Use grubvox
* Create mapping to edit files in place when saving. (By default,
  vim/neovim create a new file when the opened file is saved and then
  replaces the opened file by the new one, effectively modifying the
  inode at every write).
This helps a lot when editing mounted files in docker using vim/neovim.
moby/moby#15793 (comment)

Signed-off-by: Antonio Gutierrez <chibby0ne@gmail.com>
  • Loading branch information
chibby0ne committed Dec 8, 2022
1 parent 49dd8a3 commit 8515e3b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
20 changes: 15 additions & 5 deletions nvim/init.vim
Expand Up @@ -84,9 +84,6 @@ call plug#begin('~/.local/share/nvim/plugged')
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'

" vim-colors-solarized
Plug 'altercation/vim-colors-solarized'

" vim-airline
Plug 'vim-airline/vim-airline'

Expand All @@ -108,6 +105,12 @@ Plug 'tpope/vim-fugitive'
" TagBar
Plug 'majutsushi/tagbar'

" Gruvbox theme
Plug 'morhetz/gruvbox'

" Syntax highlighting
Plug 'rust-lang/rust.vim'

" On-demand loading
"Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
"Plug 'tpope/vim-fireplace', { 'for': 'clojure' }
Expand Down Expand Up @@ -153,8 +156,8 @@ let g:airline_solarized_bg='dark'
""""""""""""""""""""""""""""""""""
" vim-colors-solarized
""""""""""""""""""""""""""""""""""
set background=light
colorscheme solarized
colorscheme gruvbox
set background=dark

" This fixes the colors with coc popup windows after the most recent update
" (around September/October 2022)
Expand Down Expand Up @@ -445,9 +448,16 @@ nmap <c-s> :vsp<CR>
" remap <Leader>
let mapleader="'"


" mapping closing buffer
nmap <Leader>c :bd<CR>
"""""""""""""""""""
" Edit file in place
"""""""""""""""""""
map <leader>e :set backupcopy=yes<cr>

"""""""""""""""""""""""""""""""""""""""""""""""
" Spell checker
"""""""""""""""""""""""""""""""""""""""""""""""
Expand Down
2 changes: 1 addition & 1 deletion sway/config
Expand Up @@ -169,7 +169,7 @@ bar {
# Screen brightness controls
bindsym XF86MonBrightnessUp exec brightnessctl set +1%
bindsym XF86MonBrightnessDown exec brightnessctl set 1%-

# Keyboard backlight control
bindsym XF86KbdBrightnessUp exec --no-startup-id "~/.config/i3/kb-light.py +"
bindsym XF86KbdBrightnessDown exec --no-startup-id "~/.config/i3/kb-light.py -"
Expand Down
1 change: 1 addition & 0 deletions zshrc
Expand Up @@ -322,6 +322,7 @@ quotes=(
"${bold}\"Knowledge isn't power until it is applied\"${normal} - Dale Carnegie"
"${bold}\"There is only one way to avoid criticism: Do nothing, say nothing and be nothing\"${normal} - Elbert Hubbard"
"${bold}\"It is the the mark of an educated mind to be able to entertain a thought without accepting it\"${normal} - Aristotle"
"${bold}\"Putting off things is the biggest waste of life: It snatches away each day as it comes and denies us the present by promising the future\"${normal} - Seneca"
)
# Allow having the array[${i}] syntax
setopt KSH_ARRAYS
Expand Down

0 comments on commit 8515e3b

Please sign in to comment.