mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Merge branch 'master' of https://github.com/jdhao/nvim-config
This commit is contained in:
commit
b0d5b9765e
@ -66,7 +66,7 @@ fi
|
||||
|
||||
# Install some Python packages used by Neovim plugins.
|
||||
echo "Installing Python packages"
|
||||
PY_PACKAGES="pynvim jedi pylint flake8 yapf black"
|
||||
PY_PACKAGES="pynvim jedi pylint flake8 yapf black vim-vint"
|
||||
|
||||
if [[ "$SYSTEM_PYTHON" = true ]]; then
|
||||
echo "Using system Python to install $(PY_PACKAGES)"
|
||||
|
||||
28
ginit.vim
28
ginit.vim
@ -3,17 +3,6 @@ inoremap <silent> <S-Insert> <C-R>+
|
||||
cnoremap <S-Insert> <C-R>+
|
||||
nnoremap <silent> <C-6> <C-^>
|
||||
|
||||
" Highlight groups for cursor color
|
||||
augroup cusor_color
|
||||
autocmd!
|
||||
autocmd ColorScheme * highlight Cursor cterm=bold gui=bold guibg=cyan guifg=black
|
||||
autocmd ColorScheme * highlight Cursor2 guifg=red guibg=red
|
||||
augroup END
|
||||
|
||||
" Set up cursor color and shape in various mode, ref:
|
||||
" https://github.com/neovim/neovim/wiki/FAQ#how-to-change-cursor-color-in-the-terminal
|
||||
set guicursor=n-v-c:block-Cursor/lCursor,i-ci-ve:ver25-Cursor2/lCursor2,r-cr:hor20,o:hor20
|
||||
|
||||
" To check if neovim-qt is running, use `exists('g:GuiLoaded')`,
|
||||
" see https://github.com/equalsraf/neovim-qt/issues/219
|
||||
if exists('g:GuiLoaded')
|
||||
@ -33,12 +22,12 @@ if exists('g:fvim_loaded')
|
||||
FVimCursorSmoothBlink v:true
|
||||
|
||||
" Background composition, can be 'none', 'blur' or 'acrylic'
|
||||
FVimBackgroundComposition 'none'
|
||||
FVimBackgroundOpacity 0.85
|
||||
FVimBackgroundAltOpacity 0.85
|
||||
FVimBackgroundComposition 'blur'
|
||||
FVimBackgroundOpacity 0.9
|
||||
FVimBackgroundAltOpacity 0.9
|
||||
|
||||
" Title bar tweaks (themed with colorscheme)
|
||||
FVimCustomTitleBar v:false
|
||||
FVimCustomTitleBar v:true
|
||||
|
||||
" Debug UI overlay
|
||||
FVimDrawFPS v:false
|
||||
@ -51,16 +40,15 @@ if exists('g:fvim_loaded')
|
||||
FVimFontHintLevel 'full'
|
||||
FVimFontSubpixel v:true
|
||||
FVimFontLigature v:true
|
||||
FVimFontLcdRender v:false
|
||||
" can be 'default', '14.0', '-1.0' etc.
|
||||
FVimFontLineHeight '+2.0'
|
||||
FVimFontLineHeight 'default'
|
||||
|
||||
" Try to snap the fonts to the pixels, reduces blur
|
||||
" in some situations (e.g. 100% DPI).
|
||||
FVimFontAutoSnap v:false
|
||||
FVimFontAutoSnap v:true
|
||||
|
||||
" Font weight tuning, possible valuaes are 100..900
|
||||
FVimFontNormalWeight 400
|
||||
" Font weight tuning, possible values are 100..900
|
||||
FVimFontNormalWeight 100
|
||||
FVimFontBoldWeight 700
|
||||
|
||||
FVimUIPopupMenu v:false
|
||||
|
||||
@ -47,9 +47,6 @@ nnoremap<silent> \x :windo lclose <bar> cclose<CR>
|
||||
" window, see https://stackoverflow.com/q/4465095/6064933
|
||||
nnoremap <silent> \d :bprevious <bar> bdelete #<CR>
|
||||
|
||||
" Toggle search highlight, see https://stackoverflow.com/a/26504944/6064933
|
||||
nnoremap <silent><expr> <Leader>hl (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
|
||||
|
||||
" Insert a blank line below or above current line (do not move the cursor),
|
||||
" see https://stackoverflow.com/a/16136133/6064933
|
||||
nnoremap <expr> oo 'm`' . v:count1 . 'o<Esc>``'
|
||||
|
||||
11
options.vim
11
options.vim
@ -168,4 +168,15 @@ if executable('rg')
|
||||
set grepprg=rg\ --vimgrep\ --no-heading\ --smart-case
|
||||
set grepformat=%f:%l:%c:%m
|
||||
endif
|
||||
|
||||
" Highlight groups for cursor color
|
||||
augroup cursor_color
|
||||
autocmd!
|
||||
autocmd ColorScheme * highlight Cursor cterm=bold gui=bold guibg=cyan guifg=black
|
||||
autocmd ColorScheme * highlight Cursor2 guifg=red guibg=red
|
||||
augroup END
|
||||
|
||||
" Set up cursor color and shape in various mode, ref:
|
||||
" https://github.com/neovim/neovim/wiki/FAQ#how-to-change-cursor-color-in-the-terminal
|
||||
set guicursor=n-v-c:block-Cursor/lCursor,i-ci-ve:ver25-Cursor2/lCursor2,r-cr:hor20,o:hor20
|
||||
"}
|
||||
|
||||
@ -479,8 +479,14 @@ let g:Lf_PopupPosition = [0, &columns/4]
|
||||
" submodules are not searched by default.
|
||||
let g:Lf_UseVersionControlTool = 0
|
||||
|
||||
" Disable default mapping
|
||||
let g:Lf_ShortcutF = ''
|
||||
let g:Lf_ShortcutB = ''
|
||||
|
||||
" Search files in popup window
|
||||
nnoremap <silent> <leader>f :Leaderf file --popup<CR>
|
||||
" Search vim help files
|
||||
nnoremap <silent> <leader>h :Leaderf help --popup<CR>
|
||||
"}}
|
||||
|
||||
"{{ URL related
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user