Map localleader for neorg
Adjust dependencies so neorg loads before treesitter Setup common workspace folders for neorg
This commit is contained in:
parent
1ff9526175
commit
1083f3ea0f
1
init.lua
1
init.lua
|
@ -1,4 +1,5 @@
|
|||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = ","
|
||||
vim.opt.termguicolors = true
|
||||
require "ui.fillchars"
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ return {
|
|||
event = { "FileType norg" },
|
||||
cmd = "Neorg",
|
||||
lazy = true,
|
||||
dependencies = { "nvim-lua/plenary.nvim", "nvim-treesitter/nvim-treesitter", "nvim-neorg/neorg-telescope" },
|
||||
dependencies = { "nvim-lua/plenary.nvim", "nvim-neorg/neorg-telescope" },
|
||||
init = function()
|
||||
vim.api.nvim_create_autocmd({ "BufNewFile", "BufReadPost" }, {
|
||||
pattern = { "*.norg" },
|
||||
|
@ -18,8 +18,8 @@ return {
|
|||
opts = {
|
||||
load = {
|
||||
["core.defaults"] = {},
|
||||
["core.concealer"] = {},
|
||||
["core.dirman"] = { config = { workspaces = { notes = "~/notes", logbooks = "~/Documents/Logbooks" } } },
|
||||
["core.concealer"] = { config = { icon_preset = "diamond" } },
|
||||
["core.dirman"] = { config = { workspaces = { personal = "~/notes/personal", work = "~/notes/work" } } },
|
||||
["core.completion"] = { config = { engine = "nvim-cmp" } },
|
||||
["core.export"] = {},
|
||||
["core.journal"] = {},
|
||||
|
|
|
@ -3,7 +3,7 @@ return {
|
|||
version = false,
|
||||
build = ":TSUpdate",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter-refactor" },
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter-refactor", "nvim-neorg/neorg" },
|
||||
config = function(_, opts)
|
||||
if type(opts.ensure_installed) == "table" then
|
||||
-- @type table<string, boolean>
|
||||
|
|
Loading…
Reference in a new issue