diff --git a/.config/nvim/lua/tovi/plugins/lualine.lua b/.config/nvim/lua/tovi/plugins/lualine.lua index eaf9915..0f090fc 100644 --- a/.config/nvim/lua/tovi/plugins/lualine.lua +++ b/.config/nvim/lua/tovi/plugins/lualine.lua @@ -1,39 +1,49 @@ return { - "nvim-lualine/lualine.nvim", - dependencies = { - "nvim-tree/nvim-web-devicons", - "letieu/harpoon-lualine", - }, - config = function() - local lualine = require("lualine") - local lazy_status = require("lazy.status") + "nvim-lualine/lualine.nvim", + dependencies = { + "nvim-tree/nvim-web-devicons", + "letieu/harpoon-lualine", + }, + config = function() + local lualine = require("lualine") + local lazy_status = require("lazy.status") - lualine.setup({ - options = { - theme = "kanagawa", - component_separators = { left = "", right = "" }, - section_separators = { left = "", right = "" }, - }, - sections = { - lualine_b = { - { "branch" }, - { "diff" }, - { "diagnostics" }, - }, - lualine_c = { - { "filename", file_status = true, path = 1 }, - { "harpoon2" }, - }, - lualine_x = { - { - lazy_status.updates, - cond = lazy_status.has_updates, - color = { fg = "#ff9e64" }, - }, - { "fileformat" }, - { "filetype" }, - }, - }, - }) - end, + local function macro_recording() + local recording_register = vim.fn.reg_recording() + if recording_register == "" then + return "" + else + return "Recording @" .. recording_register + end + end + + lualine.setup({ + options = { + theme = "kanagawa", + component_separators = { left = "", right = "" }, + section_separators = { left = "", right = "" }, + }, + sections = { + lualine_b = { + { "branch" }, + { "diff" }, + { "diagnostics" }, + }, + lualine_c = { + { "filename", file_status = true, path = 1 }, + { "harpoon2" }, + { macro_recording, color = { fg = "#ff9e64", gui = "bold" } }, + }, + lualine_x = { + { + lazy_status.updates, + cond = lazy_status.has_updates, + color = { fg = "#ff9e64" }, + }, + { "fileformat" }, + { "filetype" }, + }, + }, + }) + end, } diff --git a/.config/nvim/lua/tovi/plugins/noice.lua b/.config/nvim/lua/tovi/plugins/noice.lua new file mode 100644 index 0000000..4320dc9 --- /dev/null +++ b/.config/nvim/lua/tovi/plugins/noice.lua @@ -0,0 +1,9 @@ +return { + "folke/noice.nvim", + event = "VeryLazy", + opts = {}, + dependencies = { + "MunifTanjim/nui.nvim", + "rcarriga/nvim-notify", + }, +}