diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index a9a9913..1563587 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -38,4 +38,7 @@ require("lazy").setup({ }, -- automatically check for plugin updates checker = { enabled = false }, + performance = { + reset_packpath = false, + }, }) diff --git a/lua/plugins/completion/treesitter.lua b/lua/plugins/completion/treesitter.lua new file mode 100644 index 0000000..37be234 --- /dev/null +++ b/lua/plugins/completion/treesitter.lua @@ -0,0 +1,13 @@ +return { + "nvim-treesitter/nvim-treesitter", + -- Important: On NixOS, we don't want lazy to build it + build = false, + lazy = false, + config = function() + require("nvim-treesitter").setup({ + -- Disable auto_install so it doesn't try to use 'git' or 'curl' + auto_install = false, + highlight = { enable = true }, + }) + end, +} diff --git a/lua/plugins/functional/neorg.lua b/lua/plugins/functional/neorg.lua new file mode 100644 index 0000000..da74921 --- /dev/null +++ b/lua/plugins/functional/neorg.lua @@ -0,0 +1,21 @@ +return { + "nvim-neorg/neorg", + build = false, + dependencies = { "nvim-lua/plenary.nvim", "nvim-neorg/tree-sitter-norg" }, + config = function() + require("neorg").setup({ + load = { + ["core.defaults"] = {}, -- Loads default settings + ["core.concealer"] = {}, -- Adds pretty icons/formatting + ["core.dirman"] = { -- Manages your workspaces + config = { + workspaces = { + notes = "~/notes", + }, + default_workspace = "notes", + }, + }, + }, + }) + end, +}