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:
@@ -88,6 +88,25 @@ require("lazy").setup({
|
||||
org_agenda_files = '~/orgfiles/**/*',
|
||||
org_default_notes_file = '~/orgfiles/refile.org',
|
||||
org_todo_keywords = { 'TODO(t)', 'STARTED(s)', 'PLANNED(p)', '|', 'DONE(d)', 'UNPLANNED(u)' },
|
||||
org_custom_exports = {
|
||||
f = {
|
||||
label = 'Export to HTML format',
|
||||
action = function(exporter)
|
||||
local current_file = vim.api.nvim_buf_get_name(0)
|
||||
local target = vim.fn.fnamemodify(current_file, ':p:r') .. '.html'
|
||||
local command = { 'pandoc', current_file, '-o', target }
|
||||
local on_success = function(output)
|
||||
print('Success!')
|
||||
vim.api.nvim_echo({ { table.concat(output, '\n') } }, true, {})
|
||||
end
|
||||
local on_error = function(err)
|
||||
print('Error!')
|
||||
vim.api.nvim_echo({ { table.concat(err, '\n'), 'ErrorMsg' } }, true, {})
|
||||
end
|
||||
return exporter(command, target, on_success, on_error)
|
||||
end
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
-- NOTE: If you are using nvim-treesitter with ~ensure_installed = "all"~ option
|
||||
@@ -503,4 +522,9 @@ require("lazy").setup({
|
||||
vim.g.tidal_sc_enable = 1
|
||||
end,
|
||||
},
|
||||
|
||||
-- debugging support, needed for things like rustaceanvim
|
||||
{
|
||||
'mfussenegger/nvim-dap'
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user