added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
71
nyx/hosts/gaea/system/programs/neovim/config/init.vim
Normal file
71
nyx/hosts/gaea/system/programs/neovim/config/init.vim
Normal file
|
@ -0,0 +1,71 @@
|
|||
"vi:filetype=vim
|
||||
|
||||
" add ~/.vim to the beginning of the runtimepath
|
||||
set runtimepath^=~/.vim
|
||||
|
||||
" set the packpath to the runtimepath
|
||||
let &packpath = &runtimepath
|
||||
|
||||
" for plugins to load correctly
|
||||
filetype plugin indent on
|
||||
|
||||
" don't try to be vi compatible
|
||||
set nocompatible
|
||||
|
||||
" use system clipboard
|
||||
set clipboard+=unnamedplus
|
||||
|
||||
" syntax highlighting
|
||||
syntax enable
|
||||
|
||||
" display line numbers
|
||||
set number relativenumber
|
||||
|
||||
" enable mouse support in all modes
|
||||
set mouse=a
|
||||
|
||||
" set indentation to spaces instead of tabs
|
||||
set noexpandtab
|
||||
|
||||
" number of spaces to use for each step of (auto)indent
|
||||
set shiftwidth=2
|
||||
|
||||
" number of spaces that a <Tab> in the file counts for
|
||||
set tabstop=2
|
||||
|
||||
" C-style indenting
|
||||
set cindent
|
||||
|
||||
" 'smart' indenting
|
||||
set smartindent
|
||||
|
||||
" set the indent of new lines
|
||||
set autoindent
|
||||
|
||||
" set the folding method based on syntax
|
||||
set foldmethod=syntax
|
||||
|
||||
|
||||
" spaces instead of tabs for indentation
|
||||
set expandtab
|
||||
|
||||
" 'smart' tabs that respects 'shiftwidth' for indentation
|
||||
set smarttab
|
||||
|
||||
" number of spaces a <Tab> in the file counts for
|
||||
set tabstop=4
|
||||
|
||||
" number of spaces to use for each step of (auto)indent
|
||||
set shiftwidth=0
|
||||
|
||||
" define backspace behavior in insert mode:
|
||||
" - 'indent': allows backspace to delete auto-indentation at the start of a line
|
||||
" - 'eol': enables backspace to delete the end-of-line character, acting as line deletion
|
||||
" - 'start': allows backspace to delete past the start of insert or typeahead
|
||||
set backspace=indent,eol,start
|
||||
|
||||
|
||||
" spell Checking
|
||||
set spelllang=en " spell check langs
|
||||
set spellsuggest=best,9 " suggestions for spelling corrections
|
||||
|
9
nyx/hosts/gaea/system/programs/neovim/config/maps.vim
Normal file
9
nyx/hosts/gaea/system/programs/neovim/config/maps.vim
Normal file
|
@ -0,0 +1,9 @@
|
|||
" map key <F2> to toggle between hiding/showing current line
|
||||
nmap <F2> zA
|
||||
|
||||
" map key <F3> to toggle between reducing/enlarging fold level
|
||||
nmap <F3> zR
|
||||
|
||||
" map key <F4> to fold everything except the cursor line
|
||||
nmap <F4> zM
|
||||
|
16
nyx/hosts/gaea/system/programs/neovim/config/plugins.vim
Normal file
16
nyx/hosts/gaea/system/programs/neovim/config/plugins.vim
Normal file
|
@ -0,0 +1,16 @@
|
|||
" customize label for vim-sneak
|
||||
let g:sneak#label = 1
|
||||
|
||||
" Toggle spell checking in normal mode
|
||||
nnoremap <silent> <F3> :set spell!<CR>
|
||||
|
||||
" Toggle spell checking in insert mode
|
||||
inoremap <silent> <F3> <C-O>:set spell!<CR>
|
||||
|
||||
lua << EOF
|
||||
require('nvim-treesitter.configs').setup {
|
||||
highlight = {
|
||||
enable = true
|
||||
}
|
||||
}
|
||||
EOF
|
Loading…
Add table
Add a link
Reference in a new issue