Compare commits
2 commits
b2082f6aa1
...
671dbd3bf9
Author | SHA1 | Date | |
---|---|---|---|
671dbd3bf9 | |||
1441dd27a2 |
3 changed files with 18 additions and 1 deletions
10
init.vim
10
init.vim
|
@ -112,7 +112,7 @@ set mouse=nv
|
|||
|
||||
set gfn=DejaVu\ Sans\ Mono\ for\ Powerline:h13
|
||||
" from https://stackoverflow.com/a/51424640
|
||||
let s:fontsize = 13
|
||||
let s:fontsize = 14
|
||||
function! AdjustFontSize(amount)
|
||||
let s:fontsize = s:fontsize+a:amount
|
||||
:execute "set gfn=DejaVu\\ Sans\\ Mono\\ for\\ Powerline:h" . s:fontsize
|
||||
|
@ -122,3 +122,11 @@ noremap <C-Up> :call AdjustFontSize(1)<CR>
|
|||
noremap <C-Down> :call AdjustFontSize(-1)<CR>
|
||||
inoremap <C-Up> <Esc>:call AdjustFontSize(1)<CR>a
|
||||
inoremap <C-Down> <Esc>:call AdjustFontSize(-1)<CR>a
|
||||
|
||||
lua << EOF
|
||||
require("trouble").setup {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
}
|
||||
EOF
|
||||
|
|
|
@ -30,3 +30,10 @@ nnoremap <silent> <Leader>rn <cmd>lua vim.lsp.buf.rename()<CR>
|
|||
nnoremap <silent> g[ <cmd>lua vim.diagnostic.goto_prev()<CR>
|
||||
nnoremap <silent> g] <cmd>lua vim.diagnostic.goto_next()<CR>
|
||||
nnoremap <silent> gE <cmd>lua vim.diagnostic.setloclist()<CR>
|
||||
|
||||
" work with Trouble to view lists of diagnostic warnings/ennoremap <leader>xx <cmd>TroubleToggle<cr>
|
||||
nnoremap <leader>xw <cmd>TroubleToggle workspace_diagnostics<cr>
|
||||
nnoremap <leader>xd <cmd>TroubleToggle document_diagnostics<cr>
|
||||
nnoremap <leader>xq <cmd>TroubleToggle quickfix<cr>
|
||||
nnoremap <leader>xl <cmd>TroubleToggle loclist<cr>
|
||||
nnoremap gR <cmd>TroubleToggle lsp_references<cr>rrors
|
||||
|
|
2
plug.vim
2
plug.vim
|
@ -13,6 +13,8 @@ Plug 'vim-airline/vim-airline-themes'
|
|||
Plug 'mbbill/undotree'
|
||||
" Preferred color scheme
|
||||
Plug 'fneu/breezy'
|
||||
" diagnostics display
|
||||
Plug 'folke/trouble.nvim'
|
||||
|
||||
|
||||
" files, folders, projects, etc.
|
||||
|
|
Loading…
Reference in a new issue