mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
Compare commits
3 commits
c23ce14d05
...
50793f84a9
Author | SHA1 | Date | |
---|---|---|---|
|
50793f84a9 | ||
|
b27bb07d9d | ||
|
3730b40d25 |
3 changed files with 16 additions and 3 deletions
|
@ -1,2 +0,0 @@
|
||||||
call extend(g:dotfiles_coc_extensions, {'coc-cl': 1})
|
|
||||||
call extend(g:dotfiles_coc_filetypes, {'lsp': 1})
|
|
|
@ -14,7 +14,7 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Arrow key fix kanged from <https://vim.fandom.com/wiki/Fix_arrow_keys_that_display_A_B_C_D_on_remote_shell#Solution_21> {{{
|
" Arrow key fix kanged from <https://vim.fandom.com/wiki/Fix_arrow_keys_that_display_A_B_C_D_on_remote_shell#Solution_21> {{{
|
||||||
if g:HELP_MY_ARROW_KEYS_ARE_BROKEN
|
if exists("g:HELP_MY_ARROW_KEYS_ARE_BROKEN")
|
||||||
" the following simply creates an ambiguous mapping so vim fully
|
" the following simply creates an ambiguous mapping so vim fully
|
||||||
" processes the escape sequence for terminal keys, see 'ttimeout' for a
|
" processes the escape sequence for terminal keys, see 'ttimeout' for a
|
||||||
" rough explanation, this just forces it to work
|
" rough explanation, this just forces it to work
|
||||||
|
|
|
@ -1,5 +1,20 @@
|
||||||
nnoremap <C-t> :NERDTreeToggle<CR>
|
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
|
" Completion {{{
|
||||||
|
function! s:check_back_space() abort
|
||||||
|
let col = col('.') - 1
|
||||||
|
return !col || getline('.')[col - 1] =~ '\s'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
inoremap <expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<CR>"
|
||||||
|
|
||||||
|
inoremap <silent><expr> <TAB>
|
||||||
|
\ coc#pum#visible() ? coc#pum#next(1):
|
||||||
|
\ <SID>check_back_space() ? "\<Tab>" :
|
||||||
|
\ coc#refresh()
|
||||||
|
inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
||||||
|
" }}}
|
||||||
|
|
||||||
" Copy to clipboard register and paste from clipboard register {{{
|
" Copy to clipboard register and paste from clipboard register {{{
|
||||||
" Taken from https://unix.stackexchange.com/a/23437
|
" Taken from https://unix.stackexchange.com/a/23437
|
||||||
nnoremap <C-y> "+y
|
nnoremap <C-y> "+y
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue