Added nvim-orgmode (requires 0.9+)
This commit is contained in:
parent
884331468a
commit
6b25442329
3 changed files with 60 additions and 5 deletions
24
lua/.luarc.json
Normal file
24
lua/.luarc.json
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"workspace.library": [
|
||||||
|
"/home/warwick/.config/nvim",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/lazy.nvim",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/nvim-treesitter",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/nvim-tree.lua",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/nvim-cmp",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/plenary.nvim",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/telescope.nvim",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/nvim-web-devicons",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/cmp-nvim-lsp",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/lualine.nvim",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/nvim-lspconfig",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/mason-lspconfig.nvim",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/gruvbox.nvim",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/mason.nvim",
|
||||||
|
"/usr/share/nvim/runtime",
|
||||||
|
"/usr/share/nvim/runtime/pack/dist/opt/matchit",
|
||||||
|
"/usr/lib/nvim",
|
||||||
|
"/home/warwick/.local/state/nvim/lazy/readme",
|
||||||
|
"/home/warwick/.local/share/nvim/lazy/cmp-nvim-lsp/after",
|
||||||
|
"${3rd}/luassert/library"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
require("indent_blankline").setup {
|
require("ibl").setup {
|
||||||
-- for example, context is off by default, use this to turn it on
|
-- for example, context is off by default, use this to turn it on
|
||||||
show_current_context = false,
|
--show_current_context = false,
|
||||||
show_current_context_start = false,
|
--show_current_context_start = false,
|
||||||
}
|
}
|
||||||
vim.cmd [[colorscheme gruvbox]]
|
vim.cmd [[colorscheme gruvbox]]
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ local plugins = {
|
||||||
vim.o.timeoutlen = 300
|
vim.o.timeoutlen = 300
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
{ "lukas-reineke/indent-blankline.nvim", main = "ibl", opts = {} },
|
||||||
-- fzf
|
-- fzf
|
||||||
{
|
{
|
||||||
'nvim-telescope/telescope.nvim',
|
'nvim-telescope/telescope.nvim',
|
||||||
|
|
@ -62,7 +62,38 @@ local plugins = {
|
||||||
build = "make install_jsregexp"
|
build = "make install_jsregexp"
|
||||||
},
|
},
|
||||||
'saadparwaiz1/cmp_luasnip',
|
'saadparwaiz1/cmp_luasnip',
|
||||||
'rafamadriz/friendly-snippets'
|
'rafamadriz/friendly-snippets',
|
||||||
|
-- Org Mode
|
||||||
|
{
|
||||||
|
'nvim-orgmode/orgmode',
|
||||||
|
dependencies = {
|
||||||
|
{ 'nvim-treesitter/nvim-treesitter', lazy = true },
|
||||||
|
},
|
||||||
|
event = 'VeryLazy',
|
||||||
|
config = function()
|
||||||
|
-- Load treesitter grammar for org
|
||||||
|
require('orgmode').setup_ts_grammar()
|
||||||
|
|
||||||
|
-- Setup treesitter
|
||||||
|
--require('nvim-treesitter.configs').setup({
|
||||||
|
-- highlight = {
|
||||||
|
-- enable = true,
|
||||||
|
-- additional_vim_regex_highlighting = { 'org' },
|
||||||
|
-- },
|
||||||
|
-- ensure_installed = { 'org' },
|
||||||
|
--})
|
||||||
|
|
||||||
|
-- Setup orgmode
|
||||||
|
require('orgmode').setup({
|
||||||
|
org_agenda_files = '~/.vimwiki/**/*',
|
||||||
|
org_default_notes_file = '~/.vimwiki/refile.org',
|
||||||
|
})
|
||||||
|
-- Setup nvim-cmp
|
||||||
|
require('cmp').setup({
|
||||||
|
sources = { { name = 'orgmode' } }
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
local opts = {}
|
local opts = {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue