Added diagnostic optionional window
This commit is contained in:
parent
ceed8c8bfd
commit
96dfb38bba
@ -169,6 +169,7 @@ local on_attach = function(client, bufnr)
|
|||||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
|
||||||
|
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'ge', '<cmd>lua vim.diagnostic.setqflist()<CR>', opts)
|
||||||
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
|
||||||
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
|
||||||
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
--vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
|
||||||
@ -437,6 +438,7 @@ nmap <Leader>e <cmd>Telescope buffers<cr>
|
|||||||
nmap <Leader>w <cmd>Telescope find_files<cr>
|
nmap <Leader>w <cmd>Telescope find_files<cr>
|
||||||
nmap <Leader>q <cmd>Telescope live_grep<cr>
|
nmap <Leader>q <cmd>Telescope live_grep<cr>
|
||||||
nmap <Leader>g <cmd>Telescope git_branches<cr>
|
nmap <Leader>g <cmd>Telescope git_branches<cr>
|
||||||
|
nmap <Leader>a <cmd>Telescope diagnostics<cr>
|
||||||
|
|
||||||
" Resize window
|
" Resize window
|
||||||
nnoremap <C-L> :vertical resize +5<CR>
|
nnoremap <C-L> :vertical resize +5<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user