diff --git a/lua/plugins/alpha.lua b/lua/plugins/alpha.lua index 01e3719..b1dd361 100644 --- a/lua/plugins/alpha.lua +++ b/lua/plugins/alpha.lua @@ -14,15 +14,17 @@ return { dashboard.section.header.val = vim.split(logo, "\n") dashboard.section.buttons.val = { - dashboard.button("t", " " .. " Terminal", "ToggleTerm "), - dashboard.button("f", " " .. " Find file", "Telescope find_files "), - dashboard.button("r", " " .. " Recent files", "Telescope oldfiles "), - dashboard.button("o", " " .. " File browser", "Oil "), - dashboard.button("g", "󰊢 " .. " Git status", "Neogit "), - dashboard.button("c", " " .. " Config", "e $HOME/.config/home-manager/flake.nix "), - dashboard.button("l", "󰒲 " .. " Lazy", "Lazy"), - dashboard.button("h", " " .. " Help", "Telescope help_tags "), - dashboard.button("q", " " .. " Quit", "qa"), + dashboard.button("t", " Terminal", "ToggleTerm "), + dashboard.button("f", " Find file", "Telescope find_files "), + dashboard.button("r", " Recent files", "Telescope oldfiles "), + dashboard.button("o", " File browser", "Oil "), + dashboard.button("p", "󱞁 Personal notes", "Neorg workspace personal"), + dashboard.button("w", "󱞂 Work notes", "Neorg workspace work"), + dashboard.button("g", "󰊢 Git status", "Neogit "), + dashboard.button("c", " Config", "e $HOME/.config/home-manager/flake.nix "), + dashboard.button("l", "󰒲 Lazy", "Lazy"), + dashboard.button("h", " Help", "Telescope help_tags "), + dashboard.button("q", " Quit", "qa"), } for _, button in ipairs(dashboard.section.buttons.val) do button.opts.hl = "AlphaButtons" diff --git a/lua/plugins/nabla.lua b/lua/plugins/nabla.lua new file mode 100644 index 0000000..1cd475a --- /dev/null +++ b/lua/plugins/nabla.lua @@ -0,0 +1,8 @@ +return { + "jbyuki/nabla.nvim", + lazy = true, + init = function() + vim.keymap.set("n", "p", "lua require('nabla').popup()") + vim.keymap.set("n", "m", "lua require('nabla').toggle_virt()") + end, +} diff --git a/lua/plugins/noice.lua b/lua/plugins/noice.lua new file mode 100644 index 0000000..4f397c5 --- /dev/null +++ b/lua/plugins/noice.lua @@ -0,0 +1,35 @@ +return { + "folke/noice.nvim", + enabled = false, + cond = not vim.g.neovide, + event = { "VeryLazy" }, + dependencies = { + "MunifTanjim/nui.nvim", + "rcarriga/nvim-notify", + "stevearc/dressing.nvim", + }, + config = true, + opts = { + presets = { + bottom_search = true, + command_palette = true, + long_message_to_split = true, + inc_rename = false, + lsp_doc_border = true, + }, + lsp = { + override = { + ["vim.lsp.util.convert_input_to_markdown_lines"] = true, + ["vim.lsp.util.stylize_markdown"] = true, + ["cmp.entry.get_documentation"] = true, + }, + }, + views = { + mini = { + position = { row = -2 }, + border = { style = "rounded" }, + win_options = { winblend = 0 }, + }, + }, + }, +} diff --git a/lua/plugins/nvim_neorg.lua b/lua/plugins/nvim_neorg.lua index c79e24a..5697bda 100644 --- a/lua/plugins/nvim_neorg.lua +++ b/lua/plugins/nvim_neorg.lua @@ -5,7 +5,7 @@ return { ft = "norg", cmd = "Neorg", lazy = true, - dependencies = { "plenary.nvim", "nvim-treesitter", "nvim-cmp" }, + dependencies = { "plenary.nvim", "nvim-treesitter", "nvim-cmp", "nabla.nvim" }, init = function() vim.api.nvim_create_autocmd({ "BufWritePre" }, { pattern = { "*.norg" }, @@ -15,6 +15,10 @@ return { pattern = { "*.norg" }, command = "setlocal spell spelllang=en_gb", }) + vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, { + pattern = { "*.norg" }, + command = "lua require('nabla').enable_virt()", + }) vim.keymap.set("n", "wp", "Neorg workspace personal ") vim.keymap.set("n", "ww", "Neorg workspace work ") vim.keymap.set("n", "wr", "Neorg return ") diff --git a/lua/plugins/taskwarrior.lua b/lua/plugins/taskwarrior.lua new file mode 100644 index 0000000..ce25bed --- /dev/null +++ b/lua/plugins/taskwarrior.lua @@ -0,0 +1,7 @@ +return { + "ribelo/taskwarrior.nvim", + cond = false, -- TODO, currently broken but easy fix tbh + cmd = "Task", + opts = {}, + config = function() require("taskwarrior.nvim").setup() end, +}