vimrc: lean
This commit is contained in:
parent
fcc70c9656
commit
4e6a686292
8
vimrc
8
vimrc
@ -208,6 +208,9 @@ lua <<EOF
|
||||
builtin = true,
|
||||
},
|
||||
mappings = true,
|
||||
infoview = {
|
||||
autoopen = false,
|
||||
},
|
||||
-- treesitter = {},
|
||||
lsp = {
|
||||
on_attach = function(client, bufnr)
|
||||
@ -371,8 +374,8 @@ nnoremap <space>rn <cmd>lua vim.lsp.buf.rename()<CR>
|
||||
nnoremap <space>ca <cmd>lua vim.lsp.buf.code_action()<CR>
|
||||
nnoremap gr <cmd>lua vim.lsp.buf.references()<CR>
|
||||
nnoremap <space>e <cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>
|
||||
nnoremap [d <cmd>lua vim.lsp.diagnostic.goto_prev()<CR>
|
||||
nnoremap ]d <cmd>lua vim.lsp.diagnostic.goto_next()<CR>
|
||||
nnoremap [d <cmd>lua vim.diagnostic.goto_prev()<CR>
|
||||
nnoremap ]d <cmd>lua vim.diagnostic.goto_next()<CR>
|
||||
nnoremap <space>q <cmd>lua vim.lsp.diagnostic.set_loclist()<CR>
|
||||
nnoremap <space>f <cmd>lua vim.lsp.buf.formatting()<CR>
|
||||
|
||||
@ -386,6 +389,7 @@ nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
||||
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
||||
nnoremap <leader>fs <cmd>lua require 'telescope.builtin.lsp'.dynamic_workspace_symbols({symbol_type_width=1, symbol_width=50})<cr>
|
||||
|
||||
else
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user