mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update
This commit is contained in:
parent
83d523c7d6
commit
e9549fa0a5
5 changed files with 16 additions and 412 deletions
2
user-config/nvim/.netrwhist
Normal file
2
user-config/nvim/.netrwhist
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
let g:netrw_dirhistmax =10
|
||||
let g:netrw_dirhist_cnt =0
|
||||
86
user-config/nvim/init.vim
Normal file
86
user-config/nvim/init.vim
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
" Plugins will be downloaded under the specified directory.
|
||||
call plug#begin('~/.local/share/nvim/plugged')
|
||||
|
||||
" Declare the list of plugins.
|
||||
Plug 'morhetz/gruvbox'
|
||||
" Plug 'Badacadabra/vim-archery'
|
||||
Plug 'Yggdroot/indentLine'
|
||||
if has('nvim')
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
else
|
||||
Plug 'Shougo/deoplete.nvim'
|
||||
Plug 'roxma/nvim-yarp'
|
||||
Plug 'roxma/vim-hug-neovim-rpc'
|
||||
endif
|
||||
|
||||
" Syntax highlight
|
||||
Plug 'zchee/deoplete-jedi'
|
||||
Plug 'rust-lang/rust.vim'
|
||||
Plug 'mattn/webapi-vim'
|
||||
Plug 'mustache/vim-mustache-handlebars'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
|
||||
" Auto pair
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
|
||||
" List ends here. Plugins become visible to Vim after this call.
|
||||
call plug#end()
|
||||
|
||||
" Use mustache
|
||||
let g:mustache_abbreviations = 1
|
||||
|
||||
" Use deoplete.
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
|
||||
" Rust config
|
||||
let g:rustfmt_autosave = 1
|
||||
let g:rust_clip_command = 'xclip -selection clipboard'
|
||||
|
||||
syntax on
|
||||
set guifont=Monospace\ Bold\ 12
|
||||
colors gruvbox
|
||||
set background=dark
|
||||
set inccommand=nosplit
|
||||
|
||||
" Uncomment the following to have Vim jump to the last position when
|
||||
" reopening a file
|
||||
if has("autocmd")
|
||||
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
||||
endif
|
||||
|
||||
" Uncomment the following to have Vim load indentation rules and plugins
|
||||
" according to the detected filetype.
|
||||
if has("autocmd")
|
||||
filetype plugin indent on
|
||||
endif
|
||||
|
||||
set showmatch " Show matching brackets.
|
||||
set number " Show the line numbers on the left side.
|
||||
set formatoptions+=o " Continue comment marker in new lines.
|
||||
set expandtab " Insert spaces when TAB is pressed.
|
||||
set tabstop=2 " Render TABs using this many spaces.
|
||||
set shiftwidth=2 " Indentation amount for < and > commands.
|
||||
set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J)
|
||||
|
||||
" More natural splits
|
||||
set splitbelow " Horizontal split below current
|
||||
set splitright " Vertical split to right of current.
|
||||
if !&scrolloff
|
||||
set scrolloff=3 " Show next 3 lines while scrolling.
|
||||
endif
|
||||
|
||||
if !&sidescrolloff
|
||||
set sidescrolloff=5 " Show next 5 columns while side-scrolling.
|
||||
endif
|
||||
set nostartofline " Do not jump to first character with page commands.
|
||||
|
||||
" Tell Vim which characters to show for expanded TABs,
|
||||
" trailing whitespace, and end-of-lines. VERY useful!
|
||||
if &listchars ==# 'eol:$'
|
||||
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
|
||||
endif
|
||||
set list " Show problematic characters.
|
||||
|
||||
" Also highlight all tabs and trailing whitespace characters.
|
||||
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
|
||||
match ExtraWhitespace /\s\+$\|\t/
|
||||
Loading…
Add table
Add a link
Reference in a new issue