mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-12-21 21:24:59 -05:00
add basic neovim configuration
This commit is contained in:
parent
e9102f0065
commit
9710fd01bf
41
home/.config/nvim/autoload/gruvbox.vim
Normal file
41
home/.config/nvim/autoload/gruvbox.vim
Normal file
@ -0,0 +1,41 @@
|
||||
" -----------------------------------------------------------------------------
|
||||
" File: gruvbox.vim
|
||||
" Description: Retro groove color scheme for Vim
|
||||
" Author: morhetz <morhetz@gmail.com>
|
||||
" Source: https://github.com/morhetz/gruvbox
|
||||
" Last Modified: 09 Apr 2014
|
||||
" -----------------------------------------------------------------------------
|
||||
|
||||
function! gruvbox#invert_signs_toggle()
|
||||
if g:gruvbox_invert_signs == 0
|
||||
let g:gruvbox_invert_signs=1
|
||||
else
|
||||
let g:gruvbox_invert_signs=0
|
||||
endif
|
||||
|
||||
colorscheme gruvbox
|
||||
endfunction
|
||||
|
||||
" Search Highlighting {{{
|
||||
|
||||
function! gruvbox#hls_show()
|
||||
set hlsearch
|
||||
call GruvboxHlsShowCursor()
|
||||
endfunction
|
||||
|
||||
function! gruvbox#hls_hide()
|
||||
set nohlsearch
|
||||
call GruvboxHlsHideCursor()
|
||||
endfunction
|
||||
|
||||
function! gruvbox#hls_toggle()
|
||||
if &hlsearch
|
||||
call gruvbox#hls_hide()
|
||||
else
|
||||
call gruvbox#hls_show()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" }}}
|
||||
|
||||
" vim: set sw=2 ts=2 sts=2 et tw=80 ft=vim fdm=marker:
|
1418
home/.config/nvim/colors/gruvbox.vim
Normal file
1418
home/.config/nvim/colors/gruvbox.vim
Normal file
File diff suppressed because it is too large
Load Diff
32
home/.config/nvim/init.vim
Normal file
32
home/.config/nvim/init.vim
Normal file
@ -0,0 +1,32 @@
|
||||
set title
|
||||
set mouse=a
|
||||
set cursorline
|
||||
set number
|
||||
set whichwrap+=<,>,[,]
|
||||
set virtualedit=block
|
||||
set scrolloff=3
|
||||
set shortmess=atToOI
|
||||
|
||||
" double slash to use full path to file
|
||||
set backup backupdir=~/.local/state/nvim/backup//
|
||||
set undofile
|
||||
|
||||
set wildmode=list:longest,full
|
||||
|
||||
set expandtab softtabstop=4 shiftwidth=4
|
||||
set cinoptions=(0
|
||||
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
let mapleader = ","
|
||||
|
||||
colorscheme gruvbox
|
||||
|
||||
" highlight trailing whitespace, except when typing at eol
|
||||
highlight ExtraWhitespace ctermbg=darkred guibg=darkred
|
||||
match ExtraWhitespace /\s\+$/
|
||||
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
|
||||
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
|
||||
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
|
||||
autocmd BufWinLeave * call clearmatches()
|
3
home/.config/user-tmpfiles.d/vim.conf
Normal file
3
home/.config/user-tmpfiles.d/vim.conf
Normal file
@ -0,0 +1,3 @@
|
||||
d /root/.local/state/nvim/backup 0700 root root 10d
|
||||
d /root/.local/state/nvim/swap 0700 root root 10d
|
||||
d /root/.local/state/nvim/undo 0700 root root 10d
|
Loading…
Reference in New Issue
Block a user