Fixes the second part of: #1213
The same logic fixed in (#1214) is duplicated in the lualine_require
module, which appears to be used internally for loading things like
extensions.
On windows, user defined extensions that overwrite the builtin similarly
cannot be loaded due to the same string matching issue. In addition, the
number of queried runtime files is always less-than or equal to 1 due to
the `all` parameter for `nvim_get_runtime_file` being set to false.
Making it impossible to sort the list of files and prioritize ones
within the users config path `vim.fn.stdpath("config")`.
The location component had been previously changed to use
`vim.api.virtcol` (the screen position of the cursor) instead of
`vim.api.col` (the byte position of the cursor), in order to prevent
showing the wrong column when multibyte characters are present.
Unfortunately, the new inlay hints in neovim 0.10 make heavy use of
virtual text, and therefore the column shown in the location component
is often incorrect.
This change fixes it to use `vim.api.charcol`, which correctly handles
variable-width characters without including virtual text.
Fixed mason extension to only load mason-registry when the lualine section is
displayed (on 'mason' filetype). This prevents loading mason when lualine is
loaded.
terminal buffers have a different path that did not work to retrieve the branch name. By extracting the path out of the terminal path, the branch name can still resolve even when in term buffers.
* fix: fzf extension selected element parsing
On non-floating windows the selected element is not supported and showed 'nil'.
This fixes that and also uses fzf's path parser for a cleaner parsing of the
selection.
Closes#1197
* fix: fzf-lua extension lazy loading
Not calling require immediately will allow for better lazy loading using
lazy.nvim while the 'fzf' extension is enabled.
* chore: drop support for nvim-0.5, 0.6 (BREAKING)
Users of these versions can still use compatibility tags
compat-nvim-0.5 and compat-nvim-0.6 respectively.
BREAKING CHANGE
* add testing for 0.9
* Add a path option for tabs
Add get_props to align the module on Buffers.
* Add option to set the tab max size
Shorten dynamically the tab name to minimize its length when needed.
* Show modified status
* added higlightgroups for lualine to allow colorscheme to set colors for lualine
* chore: update docs for default diff color change
---------
Co-authored-by: Shadman <13149513+shadmansaleh@users.noreply.github.com>
- `searchcount.lua` now checks if the resulting table from
`vim.fn.searchcount` is empty to avoid the error.
Signed-off-by: Chris1320 <chris1320is@protonmail.com>
* added colours to qf extension to distinguish quickfix and location list
* renamed M.init() more properly
* decoupling colours assignments from init method