[vim] iferr ,ife and better previews when searching files
This commit is contained in:
parent
61df077539
commit
b9b5ebe807
3 changed files with 15 additions and 2 deletions
|
|
@ -99,8 +99,8 @@ augroup go
|
||||||
autocmd FileType go set softtabstop=2
|
autocmd FileType go set softtabstop=2
|
||||||
autocmd FileType go set shiftwidth=2
|
autocmd FileType go set shiftwidth=2
|
||||||
autocmd FileType go set noexpandtab
|
autocmd FileType go set noexpandtab
|
||||||
autocmd FileType go imap <buffer> <silent> <Leader>rr <C-o>:GoIfErr<cr>
|
autocmd FileType go imap <buffer> <silent> <Leader>ife <C-o>:GoIfErr<cr>
|
||||||
autocmd FileType go nmap <buffer> <silent> <Leader>rr :GoIfErr<cr>
|
autocmd FileType go nmap <buffer> <silent> <Leader>ife :GoIfErr<cr>
|
||||||
autocmd FileType go nnoremap <silent> <Leader>im <cmd>lua require('telescope').extensions.goimpl.goimpl{theme = "ivy", layout_config = {height = 10}}<cr>
|
autocmd FileType go nnoremap <silent> <Leader>im <cmd>lua require('telescope').extensions.goimpl.goimpl{theme = "ivy", layout_config = {height = 10}}<cr>
|
||||||
"autocmd FileType go nmap <Leader>gd <Plug>(go-doc)
|
"autocmd FileType go nmap <Leader>gd <Plug>(go-doc)
|
||||||
"autocmd FileType go nmap gd <Plug>(go-def)
|
"autocmd FileType go nmap gd <Plug>(go-def)
|
||||||
|
|
|
||||||
|
|
@ -423,6 +423,8 @@ require('telescope').setup {
|
||||||
["ff"] = require('telescope.actions').send_to_qflist,
|
["ff"] = require('telescope.actions').send_to_qflist,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
path_display = { "smart", "shorten" },
|
||||||
|
dynamic_preview_title = true,
|
||||||
},
|
},
|
||||||
pickers = {
|
pickers = {
|
||||||
goimpl = {
|
goimpl = {
|
||||||
|
|
|
||||||
11
.vimrc
11
.vimrc
|
|
@ -83,6 +83,17 @@ if exists('veonim')
|
||||||
set guifont=Droid\ Sans\ Mono\ Dotted:h20
|
set guifont=Droid\ Sans\ Mono\ Dotted:h20
|
||||||
" set linespace=10
|
" set linespace=10
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if exists('g:neovide')
|
||||||
|
let g:neovide_floating_blur_amount_x = 2.0
|
||||||
|
let g:neovide_floating_blur_amount_y = 2.0
|
||||||
|
let g:neovide_transparency = 0.95
|
||||||
|
let g:neovide_scroll_animation_length = 0.1
|
||||||
|
let g:neovide_cursor_animation_length = 0.05
|
||||||
|
let g:neovide_cursor_trail_size = 0.5
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
" * Polyglot
|
" * Polyglot
|
||||||
|
|
||||||
let g:tex_flavor = 'latex'
|
let g:tex_flavor = 'latex'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue