diff --git a/neovim/.config/nvim/after/plugin/lualine.lua b/neovim/.config/nvim/after/plugin/lualine.lua index 200a195..a0f5f9f 100644 --- a/neovim/.config/nvim/after/plugin/lualine.lua +++ b/neovim/.config/nvim/after/plugin/lualine.lua @@ -42,6 +42,7 @@ local filename = { local filename = vim.fn.expand("%:t") local fileext = vim.fn.expand("%:e") local icon = devicons.get_icon(filename, fileext) + local modified = vim.bo.modified if filetype == "fugitive" then icon = devicons.get_icons().git.icon @@ -51,6 +52,10 @@ local filename = { return filename end + if modified then + return icon .. " " .. filename .. " " .. "[+]" + end + return icon .. " " .. filename end, }