neovim orgmode

This commit is contained in:
thek4n 2024-08-29 10:23:46 +03:00
parent 56a260ec28
commit 13e9f1db7d
3 changed files with 16 additions and 0 deletions

View File

@ -114,6 +114,9 @@ vim.api.nvim_create_user_command('X', [[execute 'silent! write !SUDO_ASKPASS=vim
vim.cmd([[autocmd FileChangedRO * set readonly!]])
vim.api.nvim_create_user_command('Q', ':qa!', {})
-- Toggle line number style
function toggle_number_style()
local opt = vim.opt

View File

@ -37,6 +37,7 @@ return {
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = {"python", "lua", "vim", "html", "rust", "markdown", "regex"},
ignore_install = { 'org' },
auto_install = true,
highlight = {
enable = true,

View File

@ -0,0 +1,12 @@
return {
'nvim-orgmode/orgmode',
event = 'VeryLazy',
ft = { 'org' },
config = function()
-- Setup orgmode
require('orgmode').setup({
org_agenda_files = '~/orgfiles/**/*',
org_default_notes_file = '~/orgfiles/refile.org',
})
end,
}