diff --git a/.bashrc b/.bashrc index bd428a8..2ab7256 100644 --- a/.bashrc +++ b/.bashrc @@ -2,7 +2,7 @@ # ~/.bashrc # -export vblank_mode=0 +#export vblank_mode=0 set -o vi [[ $- != *i* ]] && return diff --git a/lf/lfrc b/lf/lfrc index b5c694d..bdf07ac 100644 --- a/lf/lfrc +++ b/lf/lfrc @@ -2,7 +2,7 @@ set previewer ~/.config/lf/preview # Basic Settings set preview true set hidden true -set color256 true +#set color256 true set icons true set ignorecase true diff --git a/nvim/init.vim b/nvim/init.vim index 145d822..45d0e55 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -11,6 +11,8 @@ set number set termguicolors set splitbelow splitright set scrolloff=5 +" coc specific +set updatetime=300 set cursorline @@ -38,7 +40,7 @@ call plug#begin('~/.local/share/nvim/plugged') " coc(code completion): nodejs, yarn """ TODO write here what to do to install the C syntax server and watnot " vimdiscord: nvim installed from pip (python extension thingy) -Plug 'vbe0201/vimdiscord' +"Plug 'vbe0201/vimdiscord' Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' } Plug 'vimwiki/vimwiki' "Plug 'franbach/miramare' @@ -145,3 +147,29 @@ nnoremap h nnoremap j nnoremap k nnoremap l + +" COC + +" Use tab for trigger completion with characters ahead and navigate. +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() +inoremap pumvisible() ? "\" : "\" + +function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' +endfunction + +" Use to trigger completion. +if has('nvim') + inoremap coc#refresh() +else + inoremap coc#refresh() +endif + +" Make auto-select the first completion item and notify coc.nvim to +" format on enter, could be remapped by other vim plugin +inoremap pumvisible() ? coc#_select_confirm() + \: "\u\\=coc#on_enter()\" diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index fcd7bad..02417f7 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -21,7 +21,7 @@ super + shift + Return $TERMINAL -e lf super + shift + d - discord + discord-canary super + shift + v pavucontrol super + shift + o