minor updates

This commit is contained in:
Andy Teijelo 2022-10-26 16:55:41 -04:00
parent 57ee993ab3
commit 6a174ec543
2 changed files with 65 additions and 64 deletions

View file

@ -24,5 +24,4 @@ require "user.lsp"
require "user.dap" require "user.dap"
require "user.exrc" require "user.exrc"
--require "user.vimspector"
require "user.fidget" require "user.fidget"

View file

@ -73,6 +73,8 @@ local function lsp_keymaps(bufnr)
keymap(bufnr, "n", "<leader>lr", "<cmd>lua vim.lsp.buf.rename()<cr>", opts) keymap(bufnr, "n", "<leader>lr", "<cmd>lua vim.lsp.buf.rename()<cr>", opts)
keymap(bufnr, "n", "<leader>ls", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts) keymap(bufnr, "n", "<leader>ls", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts)
keymap(bufnr, "n", "<leader>lq", "<cmd>lua vim.diagnostic.setloclist()<CR>", opts) keymap(bufnr, "n", "<leader>lq", "<cmd>lua vim.diagnostic.setloclist()<CR>", opts)
keymap(bufnr, "v", "<leader>lf", "<esc><cmd>'<,'>lua vim.lsp.buf.format{ async = true }<cr>", opts)
keymap(bufnr, "x", "<leader>lf", "<esc><cmd>'<,'>lua vim.lsp.buf.format{ async = true }<cr>", opts)
end end
M.on_attach = function(client, bufnr) M.on_attach = function(client, bufnr)