-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
139 lines (113 loc) · 3.28 KB
/
init.vim
File metadata and controls
139 lines (113 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
syntax on
let mapleader = " "
set noerrorbells
set tabstop=2 softtabstop=2
set shiftwidth=2
set smartindent
set expandtab
set wrap
set nu
set relativenumber
set nohlsearch
set hidden
set noerrorbells
" set nowrap
set linebreak
set smartcase
set ignorecase
set noswapfile
set nowritebackup
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
set updatetime=300
set scrolloff=8
set background=dark
command W w
set signcolumn=yes
set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg=lightgrey
call plug#begin('~/.vim/plugged')
Plug 'neovim/nvim-lspconfig'
Plug 'hrsh7th/nvim-compe'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " We recommend updating the parsers on update
" Colorschemes
Plug 'tjdevries/colorbuddy.nvim'
Plug 'gruvbox-community/gruvbox'
Plug 'arzg/vim-colors-xcode'
" Plug 'arcticicestudio/nord-vim'
" Plug 'jacoborus/tender.vim'
Plug 'NLKNguyen/papercolor-theme'
Plug 'svrana/neosolarized.nvim'
Plug 'ntpeters/vim-better-whitespace'
Plug 'preservim/nerdcommenter'
" Git
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'vim-airline/vim-airline'
" Plug 'terryma/vim-multiple-cursors'
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Plug 'JamshedVesuna/vim-markdown-preview'
Plug 'tpope/vim-surround'
" Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
Plug 'preservim/nerdtree'
" Telescope
Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
" Markdown
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
" Vue highlight
" Plug 'posva/vim-vue'
" Plug 'leafOfTree/vim-vue-plugin'
" Navigation
Plug 'szw/vim-maximizer'
call plug#end()
" lsp config
lua require('lspconfig').tsserver.setup{}
lua require('lspconfig').pyright.setup{}
lua require('lspconfig').rust_analyzer.setup{}
" set completeopt=menuone,noinsert,noselect
" let g:completion_matching_strategy_list = [ 'exact', 'substring', 'fuzzy' ]
" set shortmess+=c
" autocmd BufEnter * lua require'completion'.on_attach()
" lua require('colorbuddy').setup()
" lua require('neosolarized').setup()
set background=dark
" colorscheme gruvbox
" colorscheme xcodedark
" colorscheme nord
" colorscheme tender
colorscheme PaperColor
" colorscheme neosolarized
noremap ; :
nnoremap <C-h> <cmd>bprev<cr>
nnoremap <C-l> <cmd>bnext<cr>
nnoremap <leader>ç <cmd>e #<cr>
nnoremap <leader>d <cmd>bd<cr>
" NERDTree settings
map <leader>v :NERDTreeFind<CR>
set path+=.,**
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,node_modules,*.lock
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
vnoremap J :m '>+1<CR>gv=gv
vnoremap K :m '<-2<CR>gv=gv
filetype plugin on
" Telescope
nnoremap <C-p> <cmd>Telescope find_files<cr>
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 2
" Align line-wise comment delimiters flush left instead of following code indentation
let g:NERDDefaultAlign = 'left'
nnoremap <C-t> <cmd>NERDTreeToggle %<cr>
" nvim-compe settings
luafile ~/.config/nvim/plugin/nvim-compe.lua
luafile ~/.config/nvim/plugin/tree-sitter.lua
" built-in term
tnoremap <Esc> <C-\><C-n>
" Vim-vue config
" let g:vue_pre_processors = ['pug', 'scss']
" Navigation
noremap <C-w>m :MaximizerToggle<CR>