@@ -108,27 +108,6 @@ let g:ctrlp_use_caching = 0
108
108
let g: ctrlp_working_path_mode = ' ra'
109
109
let g: ctrlp_switch_buffer = ' et'
110
110
111
- " """""""""""
112
- " coc.nvim "
113
- " """""""""""
114
- " use tab to trigger completion and pick the selected
115
- inoremap <silent> <expr> <TAB>
116
- \ coc#pum#visible() ? coc#pum#next(1) :
117
- \ CheckBackspace() ? "\<Tab> " :
118
- \ coc#refresh()
119
- inoremap <expr> <S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h> "
120
-
121
- inoremap <silent> <expr> <CR> coc#pum#visible() ? coc#pum#confirm()
122
- \ : "\<C-g> u\<CR> \<c-r> =coc#on_enter()\<CR> "
123
-
124
- function ! CheckBackspace () abort
125
- let col = col (' .' ) - 1
126
- return ! col || getline (' .' )[col - 1 ] = ~# ' \s'
127
- endfunction
128
-
129
- " format the current file with <leader>p
130
- nmap <leader> p :CocCommand prettier.formatFile<CR>
131
-
132
111
" """""""""""""""""""
133
112
" Filetype Plugins "
134
113
" """""""""""""""""""
@@ -167,8 +146,18 @@ let g:pandoc#formatting#mode = 'ha' " enable auto hard wrapping
167
146
let g: pandoc #formatting#smart_autoformat_on_cursormoved = 1
168
147
let g: pandoc #syntax #conceal#use = 0 " disable conceal
169
148
170
- " enable airline with ALE
171
- let g: airline #extensions#ale#enabled = 1
149
+ " custom lsp configuration
150
+ let g: lsp_settings_filetype_ruby = [' solargraph' ]
151
+
152
+ " setup tab complete
153
+ inoremap <expr> <Tab> pumvisible() ? "\<C-n> " : "\<Tab> "
154
+ inoremap <expr> <S-Tab> pumvisible() ? "\<C-p> " : "\<S-Tab> "
155
+ inoremap <expr> <cr> pumvisible() ? asyncomplete#close_popup() : "\<cr> "
156
+
157
+ let g: airline #extensions#ale#enabled = 1 " set ale to use airline
158
+ let g: ale_virtualtext_cursor = ' current' " show error/warning text on current
159
+ nmap <silent> <C-[> <Plug> (ale_previous_wrap)
160
+ nmap <silent> <C-]> <Plug> (ale_next_wrap)
172
161
173
162
" vim-test mappings
174
163
nnoremap <silent> <Leader> t :TestFile<CR>
0 commit comments