fixed swapped lsp previous and next commands.

This commit is contained in:
Gabe Venberg 2023-04-18 19:30:15 -05:00
parent e6ee53804a
commit 6d6918ef8e
2 changed files with 3 additions and 2 deletions

View file

@ -25,8 +25,8 @@ local on_attach = function()
set_keymap('', '<leader>la', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
set_keymap('', '<leader>le', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
set_keymap('', '<leader>lo', '<cmd>lua vim.diagnostic.open_float()<CR>', opts)
set_keymap('', '<leader>ln', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
set_keymap('', '<leader>lp', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
set_keymap('', '<leader>ln', '<cmd>lua vim.diagnostic.goto_next()<CR>', opts)
set_keymap('', '<leader>lp', '<cmd>lua vim.diagnostic.goto_prev()<CR>', opts)
set_keymap('', '<leader>lm', '<cmd>lua vim.lsp.buf.format {async=true}<CR>', opts)
end
require("mason-lspconfig").setup_handlers({

View file

@ -33,6 +33,7 @@
export WWW_HOME="duckduckgo.com/lite/"
#set ssh-agent to play nice with systemd.
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export TIMEFMT="%J %*U user %*S system %P cpu %*E total"
#prompt
autoload -U promptinit