mirror of
https://github.com/tomru/vim.git
synced 2026-03-03 06:27:18 +01:00
orgmode related
This commit is contained in:
@@ -67,6 +67,7 @@ return {
|
|||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
{ name = 'nvim_lsp_signature_help', group_index = 1 },
|
{ name = 'nvim_lsp_signature_help', group_index = 1 },
|
||||||
|
{ name = 'orgmode' },
|
||||||
{ name = 'luasnip', max_item_count = 5, group_index = 1 },
|
{ name = 'luasnip', max_item_count = 5, group_index = 1 },
|
||||||
{ name = 'nvim_lsp', max_item_count = 20, group_index = 1 },
|
{ name = 'nvim_lsp', max_item_count = 20, group_index = 1 },
|
||||||
{ name = 'nvim_lua', group_index = 1 },
|
{ name = 'nvim_lua', group_index = 1 },
|
||||||
|
|||||||
@@ -1,22 +1,24 @@
|
|||||||
return {
|
return {
|
||||||
'nvim-orgmode/orgmode',
|
'nvim-orgmode/orgmode',
|
||||||
dependencies = { 'akinsho/org-bullets.nvim', opts = {} },
|
dependencies = {
|
||||||
lazy = false,
|
{ 'nvim-treesitter/nvim-treesitter', lazy = true },
|
||||||
|
{ 'akinsho/org-bullets.nvim', opts = {} },
|
||||||
|
},
|
||||||
|
event = 'VeryLazy',
|
||||||
config = function()
|
config = function()
|
||||||
|
-- Load treesitter grammar for org
|
||||||
require('orgmode').setup_ts_grammar()
|
require('orgmode').setup_ts_grammar()
|
||||||
|
|
||||||
|
-- Setup treesitter
|
||||||
require('nvim-treesitter.configs').setup {
|
require('nvim-treesitter.configs').setup {
|
||||||
-- If TS highlights are not enabled at all, or disabled via `disable` prop,
|
|
||||||
-- highlighting will fallback to default Vim syntax highlighting
|
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
-- Required for spellcheck, some LaTex highlights and
|
|
||||||
-- code block highlights that do not have ts grammar
|
|
||||||
additional_vim_regex_highlighting = { 'org' },
|
additional_vim_regex_highlighting = { 'org' },
|
||||||
},
|
},
|
||||||
ensure_installed = { 'org' }, -- Or run :TSUpdate org
|
ensure_installed = { 'org' },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Setup orgmode
|
||||||
require('orgmode').setup {
|
require('orgmode').setup {
|
||||||
org_agenda_files = { '~/org/**/*' },
|
org_agenda_files = { '~/org/**/*' },
|
||||||
org_default_notes_file = '~/org/refile.org',
|
org_default_notes_file = '~/org/refile.org',
|
||||||
|
|||||||
Reference in New Issue
Block a user