Commit graph

168 commits

Author SHA1 Message Date
Folke Lemaitre
2b3bcf36b2
fix(snacks.picker): move dashboard shortcut to picker extra. Closes #5549 2025-02-08 15:27:26 +01:00
Folke Lemaitre
fb256f2b68
feat(snacks.picker): add projects picker to dashboard if snacks picker is enabled 2025-02-02 23:34:07 +01:00
Folke Lemaitre
3500d6a826
feat(bufferline): support for snacks picker sidebars 2025-01-31 20:33:15 +01:00
Folke Lemaitre
01a70cc60e
feat(snacks.picker): use snacks picker for notifications when enabled 2025-01-28 17:22:17 +01:00
Folke Lemaitre
13044c298e
feat(extras): added extra for snacks picker (#5368)
## Description

See https://github.com/folke/snacks.nvim/pull/445

NOTE: I'm **not** going to replace `fzf-lua` anytime soon. Learned my
lessons with that one :)

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2025-01-14 22:54:12 +01:00
milanglacier
7a16a752ba
feat(lualine): add fzf extensions. (#5203)
## Description

Similar to #5175, add `fzf` integration with lualine.

Note that similar to #5175, integration with `fzf` is included
unconditionally. I think we don't need to check if the users choose
`fzf` as their default picker to conditionally add the fzf integration
with lualine.

## Screenshots

**Before**:

<img width="446" alt="Screenshot 2024-12-19 at 17 58 30"
src="https://github.com/user-attachments/assets/b9974180-92e7-47fe-8f48-b153f29e0c72"
/>

**After**:

<img width="204" alt="Screenshot 2024-12-19 at 17 59 28"
src="https://github.com/user-attachments/assets/777c3433-2347-4b6a-a5cd-435404b1386a"
/>
2024-12-20 09:11:44 +01:00
Folke Lemaitre
a8332c6d50 feat(snacks): added profiler keymaps 2024-12-12 13:47:29 +01:00
Folke Lemaitre
54bece17b3 feat(snacks): added snacks.input 2024-12-12 13:47:29 +01:00
Folke Lemaitre
ba632c500d refactor(snacks): move snacks specs to ui/util so that they show up in the generated docs 2024-12-12 13:47:29 +01:00
Folke Lemaitre
7bc8490d46 feat(lualine): add snacks profiler status 2024-12-12 13:47:29 +01:00
Folke Lemaitre
6d774ba8f2 fix(ui): use Snacks.util.color instead of LazyVim.ui.fg 2024-12-12 13:47:29 +01:00
Folke Lemaitre
94fdc421a1 feat(snacks)!: use snacks.indent and moved indent-blankline to extras 2024-12-12 13:47:29 +01:00
Stefan Boca
c02275919e
fix(ui): disable indent-blankline on ft=snacks_dashboard (#4895)
## Description

`indent-blankline.nvim` would act on the snacks dashboard if it was
somehow loaded while the dashboard is still open.

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

Fixes this:

![image](https://github.com/user-attachments/assets/1f77cf1d-c9c1-48d1-9bf3-8508782e8dd1)

## Checklist

- [X] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-26 22:39:05 +01:00
Folke Lemaitre
4df9392cb8
fix(snacks): alignment of header 2024-11-19 09:35:42 +01:00
Folke Lemaitre
9c31004365
fix(snacks): cleaner way to adjust keys preset 2024-11-19 07:31:28 +01:00
Folke Lemaitre
a07db1a723
feat(snacks): use snacks.dashboard as the default dashboard. moved dashboard-nvim to extras (#4832)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

Snacks has a new dashboard plugin that will be LazyVim's default.

Check the docs at
https://github.com/folke/snacks.nvim/blob/main/docs/dashboard.md

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-18 23:32:49 +01:00
Folke Lemaitre
33557ae68b
fix(lualine): dont show statusline on snacks_dashboard 2024-11-18 21:27:36 +01:00
Folke Lemaitre
24665fc736
feat(keymaps): leader-bo to close other buffers 2024-11-09 16:13:11 +01:00
Folke Lemaitre
2f4697443c
feat(core)!: move a bunch of LazyVim features to snacks.nvim (#4706)
## Description

LazyVim comes with a bunch of smaller QoL plugin like features, but it's
not easy for non LazyVim users to use them.

That's why I started working on
[snacks.nvim](https://github.com/folke/snacks.nvim), a collection of
small QoL plugins for Neovim.

Snacks also includes a bunch of new improvements to these features.

This PR fully integrates with snacks.

## Todo

- [ ] add proper deprecations where needed
- [ ] create snacks docs
- [ ] document all the new improvements relevant to LazyVim users

## Closes

- [ ] #4492 
- [ ] #4333
- [ ] #4687

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [ ] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-11-07 15:54:47 +01:00
Shaun Clayton
a997152eb2
feat(indent-blankline): add which-key toggles (#4122)
## Description

Add which-key toggle mappings for toggling both the indention guides,
and also scope highlight on a per buffer basis.

## Screenshots


![2024-07-20_08-16](https://github.com/user-attachments/assets/7b282868-c035-4f71-97dd-5738cd953713)

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-07-20 22:14:33 +02:00
Folke Lemaitre
f9fdb356f2
fix(ui): trouble lualine component 2024-07-18 15:45:53 +02:00
Folke Lemaitre
b8bdebe5be
fix(ui): another typo 2024-07-18 10:42:02 +02:00
Folke Lemaitre
4ac249beaa
fix(ui): typo 2024-07-18 09:30:56 +02:00
Jeremy Pridemore
d2483f19ce
feat(lualine): allow for trouble_lualine to be overriden on buffer (#4096)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

Right now there is a default `vim.g.trouble_lualine` being set to
`true`, and only that variable is being checked when deciding if the
trouble output is being appended to the `lualine_c` for the lualine
plugin. This is normally nice in code files, where you can get output
like `packages/src/index.ts > myFunction` but in some filetypes, the
user may not wish for this. In particular, I found if you have files
with the `markdown` type that include long headers, then you can easily
lose the file name by it trying to include the headers in this location.

Considering that one of the `CONTRIBUTING.md` guidelines is `Ensure all
configurations are overridable by the user, using Lazy's specs.`, I
figured that allowing this to be overrideable at the user's discretion
could be a valuable feature.

This would allow the user to override this on file type by including an
autocmd like this in their `lua/config/autocmds.lua` or equivalent:

```lua
-- disable trouble symbols in lualine in text filetypes
vim.api.nvim_create_autocmd("FileType", {
  group = vim.api.nvim_create_augroup("disable_trouble_lualine", { clear = true }),
  pattern = { "text", "plaintex", "typst", "gitcommit", "markdown" },
  callback = function()
    vim.b.trouble_lualine = false
  end,
})
```

## Related Issue(s)

None

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

---------

Co-authored-by: jpridemore-allegion <jeremy.pridemore@allegion.com>
2024-07-18 07:21:50 +02:00
Folke Lemaitre
f3c93701e7
style(icons): CODEOWNERS has a default icon 2024-07-07 20:41:37 +02:00
Michael Olson
aa418a2147
feat(icons): provide language specific icons in extras (#3931)
## What is this PR for?

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

Provide language specific file icons. The intent is to lay the
foundation of this type of extension / configuration. I've added icons
for file types that I interact with but this is definitely not holistic.
I also went back and forth on whether the configuration should be within
the core UI config or in the extras (I landed on the later). Definitely
open to feedback on these changes.

## Does this PR fix an existing issue?

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

Nope.

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-07-07 19:28:51 +02:00
Folke Lemaitre
d108169e95
fix(lualine): check that trouble is installed 2024-07-07 08:47:57 +02:00
Farzad Majidfayyaz
330d2e470b
fix(lualine): use the new ministarter file type to disable in mini.starter (#3929)
## What is this PR for?

`mini.starter` recently had a breaking change to set the file type to
`ministarter` instead of the old `starter`; so, `lualine` is enabled in
the dashboard because it's using the old file type.

## Does this PR fix an existing issue?

No.

## Checklist

- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
2024-07-05 19:34:44 +02:00
Folke Lemaitre
045faec035
feat(ui): use mini.icons instead of nvim-wev-devicons (#3899)
## What is this PR for?

Replace the icon support with the new mini library

## Blockers

- [ ]
https://github.com/echasnovski/mini.nvim/issues/1007#issuecomment-2206553024
2024-07-04 18:18:10 +02:00
Folke Lemaitre
fa2fc64031
fix(dashboard): load dashboard when closing lazy if needed 2024-06-25 00:24:59 +02:00
Folke Lemaitre
faee8ce581
fix(noice): dont show old messages when installing plugins 2024-06-25 00:24:38 +02:00
Folke Lemaitre
05e45e0d35
refactor: LazyVim.config 2024-06-16 15:35:38 +02:00
Folke Lemaitre
1d50c75a4b
fix(dashboard): proper fix for dashboard's weird action loading 2024-06-13 15:01:46 +02:00
Folke Lemaitre
39a908c9fa
feat(pick): move pickers to extras (telescope still the default) (#3606)
## What is this PR for?

Refactoring of pickers in LazyVim:

- [x] telescope moved to extras
- [x] dressing was moved to the telescope extra. Not needed with fzf-lua
and noice
- [x] when none of the two is enabled, then telescope will be enabled
- [x] when using `:LazyExtras` to enable fzf-lua, the telescope spec
will never be parsed
- [x] when not using `:LazyExras`, the spec will be parsed, but one of
the two will be disabled.
- [x] only one picker extra can be used to prevent issues
- [ ] cleanup lsp keymaps
2024-06-13 06:07:02 +02:00
Folke Lemaitre
ec3dba20af
feat(noice): added support for fzf-lua. Closes #3596 2024-06-12 07:44:47 +02:00
Folke Lemaitre
6ab404134d
feat(extras): added fzf-lua (#3555)
New extra with an initial implementation of fzf-lua.

## Todo

- [x] check all places that currently depend on telescope and provide an
alternative or disable
- [x] disable telescope spec completely. (currently only removed its
keymaps)
- [x] trouble integration
- [x] https://github.com/ibhagwan/fzf-lua/issues/1241

---------

Co-authored-by: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com>
2024-06-10 21:58:33 +02:00
Folke Lemaitre
4d8d597a3f
fix(lualine): don't override user's laststatus setting. See #3486 2024-06-06 11:16:36 +02:00
Folke Lemaitre
8010f50aa5
fix(which-key): use new which-key support for native group keymaps (nop) 2024-06-06 10:46:56 +02:00
Folke Lemaitre
bac4bba016
feat(bufferline): allow custom icons for filetypes 2024-06-06 10:46:56 +02:00
Dale Lakes
1806ea710f
feat(bufferline): add keymaps for BufferLineMovePrev / BufferLineMoveNext (#1935)
* Add mappings for BufferLineMovePrev / BufferLineMoveNext

* Change to '[B' and ']B'

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-06-05 16:11:16 +02:00
Folke Lemaitre
c52242b05b
style: format 2024-06-05 13:42:15 +02:00
Brian Di Palma
c50018b791
feat(editor): added extra for inc-rename.nvim (#3432)
* feat(editor-extra): Add inc-rename

* fix: refactor and moved noice integration

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-06-04 09:51:36 +02:00
Aleksey Imuzov
4d706f1bdc
fix(ui): fix incorrect colors on change colorscheme (lualine) (#3431) 2024-06-03 10:30:57 +02:00
Folke Lemaitre
6c3fd9fedf
fix: hack for dashboard.nvim so that it shows errors when exiting 2024-06-03 07:12:17 +02:00
Folke Lemaitre
abc6554e24
fix(ui): remove old alpha.nvim warning 2024-05-31 16:49:47 +02:00
Spedon
d02b73d72a
fix(ui): allow to disable the trouble lualine component with vim.g.trouble_lualine = false (#3391)
* fix(ui): do not add trouble to lualine when aerial is enabled

* refactor: make trouble lualine an option

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-05-31 14:07:55 +02:00
Folke Lemaitre
95d055dcf7
feat: trouble v3 2024-05-30 14:41:13 +02:00
Lawrence Ho
ea1c3ad6b4
fix(bufferline): unpin bufferline with 0.9.x compatibility (#3252) 2024-05-20 19:53:49 +02:00
Folke Lemaitre
573aa226f9
fix(bufferline): pin bufferline to older version on 0.9.x for now 2024-05-19 19:44:37 +02:00
Folke Lemaitre
4614666d1e
fix(ibl): remove ibl fix since it's been fixed upstream 2024-05-18 21:53:26 +02:00