neovim orgmode
This commit is contained in:
parent
56a260ec28
commit
13e9f1db7d
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
12
home/user/.config/nvim/lua/plugins/orgmode.lua
Normal file
12
home/user/.config/nvim/lua/plugins/orgmode.lua
Normal 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,
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user