Map localleader for neorg

Adjust dependencies so neorg loads before treesitter
Setup common workspace folders for neorg
This commit is contained in:
Evie Litherland-Smith 2023-05-23 21:11:16 +01:00
parent 1ff9526175
commit 1083f3ea0f
3 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,5 @@
vim.g.mapleader = " "
vim.g.maplocalleader = ","
vim.opt.termguicolors = true
require "ui.fillchars"

View file

@ -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"] = {},

View file

@ -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>