diff options
| author | triethyl <triethylammonium@pm.me> | 2025-08-26 18:35:14 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-08-26 18:35:14 -0400 |
| commit | f5f0d7bc38095aebe74ebf2a97ba823a8a57b8b8 (patch) | |
| tree | 70d451c4cbc37dedbc8069a4c8a0171ae64ad2b1 /pkgs/custom-neovim/config/lua/statusline.lua | |
| parent | feede85ca98128a8b1f0c91b369d51dd7c854d8c (diff) | |
neovim: misc changes
Diffstat (limited to 'pkgs/custom-neovim/config/lua/statusline.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/statusline.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/custom-neovim/config/lua/statusline.lua b/pkgs/custom-neovim/config/lua/statusline.lua index e4b336b..fa16cd8 100644 --- a/pkgs/custom-neovim/config/lua/statusline.lua +++ b/pkgs/custom-neovim/config/lua/statusline.lua @@ -114,6 +114,9 @@ components.progress = function (args) local before = args.before or "" local after = args.after or "" + -- Neovide breaks this component. + if vim.g.neovide then return "" end + local sbar = { 'ðŸ¶', 'ðŸ·', 'ðŸ¸', 'ðŸ¹', 'ðŸº', 'ðŸ»' } local curr_line = vim.api.nvim_win_get_cursor(0)[1] or 0 local lines = vim.api.nvim_buf_line_count(0) or 0 @@ -237,7 +240,7 @@ local statusline = function () "%=", components.diagnostics(), - components.location({after = ""}), + components.location({after = vim.g.neovide and " " or ""}), components.progress({after = ""}), } end |
