From 1083f3ea0f1e747e30314315cb804de17c4e1588 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 23 May 2023 21:11:16 +0100 Subject: [PATCH] Map localleader for neorg Adjust dependencies so neorg loads before treesitter Setup common workspace folders for neorg --- init.lua | 1 + lua/plugins/nvim_neorg.lua | 6 +++--- lua/plugins/treesitter.lua | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index c5ed760..bae10b8 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,5 @@ vim.g.mapleader = " " +vim.g.maplocalleader = "," vim.opt.termguicolors = true require "ui.fillchars" diff --git a/lua/plugins/nvim_neorg.lua b/lua/plugins/nvim_neorg.lua index 042e26d..5b07ad0 100644 --- a/lua/plugins/nvim_neorg.lua +++ b/lua/plugins/nvim_neorg.lua @@ -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"] = {}, diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 6ce30df..51bdbfc 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -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