From ea9e351c83946377fc50c6ea506921cb65988623 Mon Sep 17 00:00:00 2001 From: voidarc Date: Fri, 13 Feb 2026 22:25:54 +0000 Subject: [PATCH] got carried away and now have noice (also neorg works great, theres some shit with python idk --- init.lua | 1 + lua/config/lazy.lua | 2 +- lua/plugins/completion/treesitter.lua | 1 + lua/plugins/functional/mini.lua | 4 ++- lua/plugins/functional/neorg.lua | 23 ------------- .../functional/neorg/neorg-telescope.lua | 1 + lua/plugins/functional/neorg/neorg.lua | 33 +++++++++++++++++++ lua/plugins/ui/noice.lua | 11 +++++++ 8 files changed, 51 insertions(+), 25 deletions(-) delete mode 100644 lua/plugins/functional/neorg.lua create mode 100644 lua/plugins/functional/neorg/neorg-telescope.lua create mode 100644 lua/plugins/functional/neorg/neorg.lua create mode 100644 lua/plugins/ui/noice.lua diff --git a/init.lua b/init.lua index 9c6c390..d930002 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,6 @@ -- Set mapleader vim.g.mapleader = "" +vim.g.maplocalleader = "," -- Lazy require("config.lazy") diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index a9a9913..393ac80 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -19,7 +19,6 @@ vim.opt.rtp:prepend(lazypath) -- loading lazy.nvim so that mappings are correct. -- This is also a good place to setup other settings (vim.opt) vim.g.mapleader = " " -vim.g.maplocalleader = "\\" -- Setup lazy.nvim require("lazy").setup({ @@ -29,6 +28,7 @@ require("lazy").setup({ { import = "plugins.completion" }, { import = "plugins.ui" }, { import = "plugins.functional" }, + { import = "plugins.functional.neorg" }, }, -- Configure any other settings here. See the documentation for more details. -- colorscheme that will be used when installing plugins. diff --git a/lua/plugins/completion/treesitter.lua b/lua/plugins/completion/treesitter.lua index 0c969b0..1aac021 100644 --- a/lua/plugins/completion/treesitter.lua +++ b/lua/plugins/completion/treesitter.lua @@ -13,6 +13,7 @@ return { "json", "lua", "norg", + "norg_meta", "markdown", "markdown_inline", "python", diff --git a/lua/plugins/functional/mini.lua b/lua/plugins/functional/mini.lua index b540b66..70ab81f 100644 --- a/lua/plugins/functional/mini.lua +++ b/lua/plugins/functional/mini.lua @@ -25,7 +25,9 @@ return { file = ".session", force = { read = false, write = true, delete = true }, }) - require("mini.notify").setup() -- Better Notifications + require("mini.notify").setup({ + window = { winblend = 0 }, + }) -- Better Notifications require("mini.surround").setup() -- Suround selections with characters require("mini.move").setup({ mappings = { diff --git a/lua/plugins/functional/neorg.lua b/lua/plugins/functional/neorg.lua deleted file mode 100644 index f60b303..0000000 --- a/lua/plugins/functional/neorg.lua +++ /dev/null @@ -1,23 +0,0 @@ -return { - "nvim-neorg/neorg", - lazy = false, - version = "*", - config = function() - require("neorg").setup({ - load = { - ["core.defaults"] = {}, - ["core.concealer"] = {}, - ["core.dirman"] = { - config = { - workspaces = { - notes = "~/notes", - }, - default_workspace = "notes", - }, - }, - }, - }) - vim.wo.foldlevel = 99 - vim.wo.conceallevel = 2 - end, -} diff --git a/lua/plugins/functional/neorg/neorg-telescope.lua b/lua/plugins/functional/neorg/neorg-telescope.lua new file mode 100644 index 0000000..81766b5 --- /dev/null +++ b/lua/plugins/functional/neorg/neorg-telescope.lua @@ -0,0 +1 @@ +return { "nvim-neorg/neorg-telescope" } diff --git a/lua/plugins/functional/neorg/neorg.lua b/lua/plugins/functional/neorg/neorg.lua new file mode 100644 index 0000000..df80fd8 --- /dev/null +++ b/lua/plugins/functional/neorg/neorg.lua @@ -0,0 +1,33 @@ +return { + "nvim-neorg/neorg", + lazy = false, + version = "*", + dependencies = { { "nvim-lua/plenary.nvim" }, { "nvim-neorg/neorg-telescope" } }, + config = function() + require("neorg").setup({ + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/Notes", + }, + default_workspace = "notes", + }, + }, + ["core.integrations.telescope"] = { + config = { + insert_file_link = { + -- Whether to show the title preview in telescope. Affects performance with a large + -- number of files. + show_title_preview = true, + }, + }, + }, + }, + }) + vim.wo.foldlevel = 99 + vim.wo.conceallevel = 2 + end, +} diff --git a/lua/plugins/ui/noice.lua b/lua/plugins/ui/noice.lua new file mode 100644 index 0000000..999acc3 --- /dev/null +++ b/lua/plugins/ui/noice.lua @@ -0,0 +1,11 @@ +return { + "folke/noice.nvim", + event = "VeryLazy", + opts = { + -- add any options here + }, + dependencies = { + -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries + "MunifTanjim/nui.nvim", + }, +}