mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-30 12:30:43 +00:00
Decentralize nvim config
This commit is contained in:
parent
5e0fcc415b
commit
cc74d65b0a
9 changed files with 192 additions and 140 deletions
13
home/.config/nvim/rc/plugins.d/airline.vim
Normal file
13
home/.config/nvim/rc/plugins.d/airline.vim
Normal file
|
@ -0,0 +1,13 @@
|
|||
" Airline specific theming settings
|
||||
let g:airline_theme='codedark' " Use codedark theme from vim-ariline-themes
|
||||
let g:airline_right_sep = "" " Don't use special separators (<)
|
||||
let g:airline_left_sep = "" " Don't use special separators (>)
|
||||
let g:airline#extensions#tabline#enabled = 1 " Enable tabline (top line)
|
||||
let g:airline#tabline#formatter = 'unique_tail' " Tabline filename formatter
|
||||
let g:webdevicons_enable_airline_statusline = 0 " Use special icons from vim-devicons (requires nerdfonts)
|
||||
let g:airline_powerline_fonts = 1 " Use special symbols from powerline fonts (line no, col no)
|
||||
|
||||
if empty($DISPLAY) " Use ASCII-only if we're in TTY
|
||||
let g:airline_symbols_ascii = 1
|
||||
endif
|
||||
|
12
home/.config/nvim/rc/plugins.d/nerdtree.vim
Normal file
12
home/.config/nvim/rc/plugins.d/nerdtree.vim
Normal file
|
@ -0,0 +1,12 @@
|
|||
" NERDTree config
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
let g:NERDTreeDirArrowExpandable = '►'
|
||||
let g:NERDTreeDirArrowCollapsible = '▼'
|
||||
let NERDTreeShowLineNumbers=1
|
||||
let NERDTreeShowHidden=1
|
||||
let NERDTreeMinimalUI = 1
|
||||
let g:NERDTreeWinSize=38
|
||||
if empty($DISPLAY) " Disable devicons for nerdtree in TTY
|
||||
let g:webdevicons_enable_nerdtree = 0
|
||||
endif
|
||||
|
12
home/.config/nvim/rc/plugins.d/python.vim
Normal file
12
home/.config/nvim/rc/plugins.d/python.vim
Normal file
|
@ -0,0 +1,12 @@
|
|||
" Define python-specific neomake config
|
||||
" Neomake is python syntax checker, in this case, we use flake8
|
||||
" Requires: pip install flake8
|
||||
let g:neomake_python_enabled_makers = ['flake8']
|
||||
let g:neomake_python_flake8_maker = {'args': ['--ignore=E501', '--format=default']}
|
||||
call neomake#configure#automake('nrwi', 500)
|
||||
|
||||
" Enable deoplete on startup
|
||||
" Deoplete provides autosuggestions from python standard library
|
||||
" Requires: pip install pynvim
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue