aboutsummaryrefslogtreecommitdiff
path: root/raspberry
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2021-09-10 00:53:54 +0300
committereug-vs <eugene@eug-vs.xyz>2021-09-10 00:59:28 +0300
commit281f3f2f9368beb3c568564c8434d91ab211147e (patch)
tree8dde7562556db315f2ad758aed22d3945cbcfd91 /raspberry
parent036e70d1885773cce328197801afaf36d210d717 (diff)
downloaddotfiles-281f3f2f9368beb3c568564c8434d91ab211147e.tar.gz
feat(rpi): add basic nvim config
Diffstat (limited to 'raspberry')
-rw-r--r--raspberry/.config/nvim/init.vim54
1 files changed, 54 insertions, 0 deletions
diff --git a/raspberry/.config/nvim/init.vim b/raspberry/.config/nvim/init.vim
new file mode 100644
index 0000000..98bd4ef
--- /dev/null
+++ b/raspberry/.config/nvim/init.vim
@@ -0,0 +1,54 @@
+" Neovim minimal configuration for raspberry pi
+" TODO: find a way re-use the main config
+
+" Enter the current millenium
+set nocompatible
+syntax enable
+filetype plugin on
+
+" General stuff
+set number relativenumber
+set ignorecase smartcase
+set splitbelow splitright
+set termguicolors
+set cursorline
+set hidden
+set nowrap
+set ruler
+set mouse=a
+set clipboard=unnamedplus
+set scrolloff=3
+set conceallevel=0
+
+" Indentation
+set smarttab expandtab
+set smartindent autoindent
+set tabstop=2
+set shiftwidth=2
+set showtabline=2
+
+" Built-in fuzzy-finder
+set path=.,**
+set wildmenu
+set wildignore+=**/node_modules/**,**/build/**,**/dist/**,**/__pycache__/**
+set wildmode=longest,list,full
+
+" Easier window navigation
+nnoremap <c-h> <C-w>h
+nnoremap <c-j> <C-w>j
+nnoremap <c-k> <C-w>k
+nnoremap <c-l> <C-w>l
+
+" Easier indentation
+vnoremap < <gv
+vnoremap > >gv
+
+" Remove trailing whitespace on save
+autocmd BufWritePre * %s/\s\+$//e
+
+" Vimrc management
+nnoremap <leader>ev :vs $MYVIMRC<CR>
+nnoremap <leader>sv :source $MYVIMRC<CR>
+
+" Colorscheme
+colorscheme murphy