init
This commit is contained in:
commit
3fcedf891a
|
@ -0,0 +1,17 @@
|
|||
" Load UltiSnips configuration
|
||||
source ~/.config/vim/plugin_configuration/ultisnips.vim
|
||||
|
||||
" ALE fixing, linting and stuff
|
||||
source ~/.config/vim/plugin_configuration/ale.vim
|
||||
|
||||
" NERDTree show hidden files
|
||||
source ~/.config/vim/plugin_configuration/nerdtree.vim
|
||||
|
||||
" Easycomplete keybindings and tabine config
|
||||
source ~/.config/vim/plugin_configuration/easycomplete.vim
|
||||
|
||||
" Smoothing
|
||||
source ~/.config/vim/plugin_configuration/smoothing.vim
|
||||
|
||||
" Update of plugins
|
||||
source ~/.config/vim/plugin_configuration/packagemanager.vim
|
|
@ -0,0 +1,8 @@
|
|||
" Vanilla configuration
|
||||
source ~/.config/vim/vanilla.vim
|
||||
|
||||
" Plugins
|
||||
source ~/.config/vim/plugins.vim
|
||||
|
||||
" Plugin configuration
|
||||
source ~/.config/vim/config.vim
|
|
@ -0,0 +1,5 @@
|
|||
" Fix files with prettier, and then ESLint.
|
||||
let b:ale_fixers = {'*': ['remove_trailing_lines', 'trim_whitespace']}
|
||||
let g:ale_fix_on_save = 1
|
||||
let g:ale_sign_error = '!'
|
||||
let g:ale_sign_warning = '?'
|
|
@ -0,0 +1,9 @@
|
|||
" Setting vanilla options regarding completion
|
||||
set completeopt=menuone,preview,noinsert,noselect
|
||||
|
||||
" Pure easycomplete configuration
|
||||
let g:easycomplete_diagnostics_next = "<C-n>"
|
||||
let g:easycomplete_diagnostics_prev = "<C-p>"
|
||||
let g:easycomplete_tab_trigger="<c-j>"
|
||||
let g:easycomplete_tab_shift_trigger="<c-k>"
|
||||
let g:easycomplete_nerd_font = 1
|
|
@ -0,0 +1,4 @@
|
|||
let NERDTreeShowHidden=1
|
||||
|
||||
nmap <C-e> :NERDTreeToggle<CR>
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
" update function and call
|
||||
function Update_Sys()
|
||||
PlugUpdate
|
||||
endfunction
|
||||
|
||||
nmap <C-u> :call Update_Sys()<CR>
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
" Tagbar configuration
|
||||
nnoremap <F8> :TagbarToggle<CR>
|
||||
|
||||
" Bufstopfast remap
|
||||
nnoremap <C-y> :BufstopFast<CR>
|
||||
|
||||
" Set colorscheme
|
||||
colorscheme cyberspace
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
let g:UltiSnipsExpandTrigger="<tab>"
|
||||
let g:UltiSnipsJumpForwardTrigger="<c-l>"
|
||||
let g:UltiSnipsJumpBackwardTrigger="<c-h>"
|
||||
let g:UltiSnipsEditSplit="vertical"
|
||||
let g:UltiSnipsSnippetStorageDirectoryForUltiSnipsEdit="/home/nick/.config/nvim/UltiSnips"
|
||||
let g:UltiSnipsSnippetDirectories=["~/.config/nvim/UltiSnips"]
|
|
@ -0,0 +1,18 @@
|
|||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'dense-analysis/ale'
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'SirVer/ultisnips'
|
||||
Plug 'jayli/vim-easycomplete'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
" Plug 'mhinz/vim-startify'
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'preservim/tagbar'
|
||||
Plug 'mechatroner/rainbow_csv'
|
||||
Plug 'mihaifm/bufstop'
|
||||
Plug 'hiroakis/cyberspace.vim' " I'm feeling Cyber XD
|
||||
Plug 'tpope/vim-speeddating'
|
||||
call plug#end()
|
|
@ -0,0 +1,29 @@
|
|||
set nocompatible
|
||||
filetype on
|
||||
filetype plugin on
|
||||
syntax on
|
||||
set number
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set showmatch
|
||||
set hlsearch
|
||||
set cursorline
|
||||
|
||||
" colorscheme
|
||||
colorscheme desert
|
||||
|
||||
" open new files right/below
|
||||
set splitright
|
||||
set splitbelow
|
||||
|
||||
" link to system clipboard
|
||||
set clipboard+=unnamed
|
||||
set clipboard+=unnamedplus
|
||||
|
||||
" If session is present in ~/.vim, then load it
|
||||
if filereadable(expand("~/.vim/vimsession.vim"))
|
||||
silent source ~/.vim/vimsession.vim
|
||||
endif
|
||||
|
||||
nnoremap yxx :e ~/.vim/vimsession.vim<CR>ggdG:w<CR>:qall<CR>
|
||||
nnoremap yxc :mksession! ~/.vim/vimsession.vim<CR>:qall<CR>
|
Loading…
Reference in New Issue