salad-book nvim(just 1 comment)
This commit is contained in:
commit
a2d1567820
4 changed files with 32 additions and 4 deletions
2
.bashrc
2
.bashrc
|
@ -2,7 +2,7 @@
|
||||||
# ~/.bashrc
|
# ~/.bashrc
|
||||||
#
|
#
|
||||||
|
|
||||||
export vblank_mode=0
|
#export vblank_mode=0
|
||||||
set -o vi
|
set -o vi
|
||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
|
2
lf/lfrc
2
lf/lfrc
|
@ -2,7 +2,7 @@ set previewer ~/.config/lf/preview
|
||||||
# Basic Settings
|
# Basic Settings
|
||||||
set preview true
|
set preview true
|
||||||
set hidden true
|
set hidden true
|
||||||
set color256 true
|
#set color256 true
|
||||||
set icons true
|
set icons true
|
||||||
set ignorecase true
|
set ignorecase true
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,8 @@ set number
|
||||||
set termguicolors
|
set termguicolors
|
||||||
set splitbelow splitright
|
set splitbelow splitright
|
||||||
set scrolloff=5
|
set scrolloff=5
|
||||||
|
" coc specific
|
||||||
|
set updatetime=300
|
||||||
|
|
||||||
set cursorline
|
set cursorline
|
||||||
|
|
||||||
|
@ -38,7 +40,7 @@ call plug#begin('~/.local/share/nvim/plugged')
|
||||||
" coc(code completion): nodejs, yarn
|
" coc(code completion): nodejs, yarn
|
||||||
""" TODO write here what to do to install the C syntax server and watnot
|
""" TODO write here what to do to install the C syntax server and watnot
|
||||||
" vimdiscord: nvim installed from pip (python extension thingy)
|
" vimdiscord: nvim installed from pip (python extension thingy)
|
||||||
Plug 'vbe0201/vimdiscord'
|
"Plug 'vbe0201/vimdiscord'
|
||||||
Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
|
Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
|
||||||
Plug 'vimwiki/vimwiki'
|
Plug 'vimwiki/vimwiki'
|
||||||
"Plug 'franbach/miramare'
|
"Plug 'franbach/miramare'
|
||||||
|
@ -145,3 +147,29 @@ nnoremap <A-h> <C-w>h
|
||||||
nnoremap <A-j> <C-w>j
|
nnoremap <A-j> <C-w>j
|
||||||
nnoremap <A-k> <C-w>k
|
nnoremap <A-k> <C-w>k
|
||||||
nnoremap <A-l> <C-w>l
|
nnoremap <A-l> <C-w>l
|
||||||
|
|
||||||
|
" COC
|
||||||
|
|
||||||
|
" Use tab for trigger completion with characters ahead and navigate.
|
||||||
|
inoremap <silent><expr> <TAB>
|
||||||
|
\ pumvisible() ? "\<C-n>" :
|
||||||
|
\ <SID>check_back_space() ? "\<TAB>" :
|
||||||
|
\ coc#refresh()
|
||||||
|
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||||
|
|
||||||
|
function! s:check_back_space() abort
|
||||||
|
let col = col('.') - 1
|
||||||
|
return !col || getline('.')[col - 1] =~# '\s'
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Use <c-space> to trigger completion.
|
||||||
|
if has('nvim')
|
||||||
|
inoremap <silent><expr> <c-space> coc#refresh()
|
||||||
|
else
|
||||||
|
inoremap <silent><expr> <c-@> coc#refresh()
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Make <CR> auto-select the first completion item and notify coc.nvim to
|
||||||
|
" format on enter, <cr> could be remapped by other vim plugin
|
||||||
|
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
||||||
|
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||||
|
|
|
@ -21,7 +21,7 @@ super + shift + Return
|
||||||
$TERMINAL -e lf
|
$TERMINAL -e lf
|
||||||
|
|
||||||
super + shift + d
|
super + shift + d
|
||||||
discord
|
discord-canary
|
||||||
super + shift + v
|
super + shift + v
|
||||||
pavucontrol
|
pavucontrol
|
||||||
super + shift + o
|
super + shift + o
|
||||||
|
|
Loading…
Reference in a new issue