vimrc: lean

This commit is contained in:
Gabriel Ebner 2022-01-25 11:16:31 +01:00
parent fcc70c9656
commit 4e6a686292

8
vimrc

@ -208,6 +208,9 @@ lua <<EOF
builtin = true, builtin = true,
}, },
mappings = true, mappings = true,
infoview = {
autoopen = false,
},
-- treesitter = {}, -- treesitter = {},
lsp = { lsp = {
on_attach = function(client, bufnr) 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 <space>ca <cmd>lua vim.lsp.buf.code_action()<CR>
nnoremap gr <cmd>lua vim.lsp.buf.references()<CR> nnoremap gr <cmd>lua vim.lsp.buf.references()<CR>
nnoremap <space>e <cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<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.diagnostic.goto_prev()<CR>
nnoremap ]d <cmd>lua vim.lsp.diagnostic.goto_next()<CR> nnoremap ]d <cmd>lua vim.diagnostic.goto_next()<CR>
nnoremap <space>q <cmd>lua vim.lsp.diagnostic.set_loclist()<CR> nnoremap <space>q <cmd>lua vim.lsp.diagnostic.set_loclist()<CR>
nnoremap <space>f <cmd>lua vim.lsp.buf.formatting()<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>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr> nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<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 else