Improved rust, keybindings, org-mode export to HTML

Rust

- added ftplugin/after/rust.lua for rust keybindings

keybindings

- <space>[ and <space>] to goto prev and next diagnosticsw

Org mode

- added option for HTML export with pandoc
This commit is contained in:
2024-11-06 22:24:51 +01:00
parent 67dafbaf6c
commit 12bf12610a
3 changed files with 37 additions and 1 deletions

10
after/ftplugin/rust.lua Normal file
View File

@@ -0,0 +1,10 @@
local bufnr = vim.api.nvim_get_current_buf()
vim.keymap.set(
"n",
"<space>E",
function()
vim.cmd.RustLsp({ 'explainError', 'current' })
end,
{ silent = true, buffer = bufnr, desc = 'Rust: explain error at cursor' }
)