From 74eb25d57918b371386139b113d5cfd18f170b16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuna=20Alika=C5=9Fifo=C4=9Flu?= Date: Mon, 22 Apr 2024 10:35:17 +0300 Subject: [PATCH 01/11] ci: update action versions to remove node warning (#3029) Since Node.js 16 actions are deprecated, and updating the actions to use Node.js 20 is recommended. All actions in `ci.yml` have a newer version, this change bumps the actions to next versions. --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51c47553..6b36e4c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: os: [ubuntu-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Neovim shell: bash run: | @@ -31,7 +31,7 @@ jobs: needs: tests if: ${{ github.ref == 'refs/heads/main' }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: panvimdoc uses: kdheepak/panvimdoc@main with: @@ -40,7 +40,7 @@ jobs: demojify: true treesitter: true - name: Push changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "chore(build): auto-generate vimdoc" commit_user_name: "github-actions[bot]" @@ -54,14 +54,14 @@ jobs: - tests runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 id: release with: release-type: simple package-name: LazyVim extra-files: | lua/lazyvim/config/init.lua - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: tag stable versions if: ${{ steps.release.outputs.release_created }} run: | From 7834d77adaa9f1305923f791efed6556e981fe5f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 22 Apr 2024 07:35:47 +0000 Subject: [PATCH 02/11] chore(build): auto-generate vimdoc --- doc/LazyVim.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/LazyVim.txt b/doc/LazyVim.txt index 303c881e..38e7d18d 100644 --- a/doc/LazyVim.txt +++ b/doc/LazyVim.txt @@ -1,4 +1,4 @@ -*LazyVim.txt* For Neovim >= 0.9.0 Last change: 2024 April 11 +*LazyVim.txt* For Neovim >= 0.9.0 Last change: 2024 April 22 ============================================================================== Table of Contents *LazyVim-table-of-contents* From 5f92dc5304b99a3e76dca878d9b47557fb64f384 Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis Date: Mon, 22 Apr 2024 10:36:05 +0300 Subject: [PATCH 03/11] fix(toggle): use new `inlay_hint.enable()` signature (#3013) --- lua/lazyvim/util/toggle.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/util/toggle.lua b/lua/lazyvim/util/toggle.lua index cb380d0d..a377064e 100644 --- a/lua/lazyvim/util/toggle.lua +++ b/lua/lazyvim/util/toggle.lua @@ -67,7 +67,7 @@ function M.inlay_hints(buf, value) if value == nil then value = not ih.is_enabled(buf) end - ih.enable(buf, value) + ih.enable(value, { bufnr = buf }) end end From cd04b58fe3f7299fbca75e7eb47287617ac23fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=C3=BAc=20H=2E=20L=C3=AA=20Kh=E1=BA=AFc?= Date: Mon, 22 Apr 2024 08:40:09 +0100 Subject: [PATCH 04/11] feat(python): use new `ruff` instead of `ruff_lsp` (#3016) --- lua/lazyvim/plugins/extras/lang/python.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/python.lua b/lua/lazyvim/plugins/extras/lang/python.lua index bc1e28cf..b36fd80c 100644 --- a/lua/lazyvim/plugins/extras/lang/python.lua +++ b/lua/lazyvim/plugins/extras/lang/python.lua @@ -28,7 +28,7 @@ return { [lsp] = { enabled = true, }, - ruff_lsp = { + ruff = { keys = { { "co", @@ -47,9 +47,9 @@ return { }, }, setup = { - ruff_lsp = function() + ruff = function() LazyVim.lsp.on_attach(function(client, _) - if client.name == "ruff_lsp" then + if client.name == "ruff" then -- Disable hover in favor of Pyright client.server_capabilities.hoverProvider = false end From 79fed97f2357b2969cb23d106137978ca7cdffb4 Mon Sep 17 00:00:00 2001 From: Alan Alvarenga <48456822+alan-alvarenga-telus@users.noreply.github.com> Date: Mon, 22 Apr 2024 01:45:59 -0600 Subject: [PATCH 05/11] fix(harpoon): harpoon2 deprecated message (#2920) * fix(config): harpoon2 deprecated message when adding new file to list and fix auto save on file list toggle * fix: Update harpoon2.lua to add pleanery dep * fix: no need for plenary deps here --------- Co-authored-by: Alan Alvarenga Co-authored-by: Rubin Bhandari Co-authored-by: Folke Lemaitre --- lua/lazyvim/plugins/extras/editor/harpoon2.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/harpoon2.lua b/lua/lazyvim/plugins/extras/editor/harpoon2.lua index 666f7d58..760d805a 100644 --- a/lua/lazyvim/plugins/extras/editor/harpoon2.lua +++ b/lua/lazyvim/plugins/extras/editor/harpoon2.lua @@ -5,13 +5,16 @@ return { menu = { width = vim.api.nvim_win_get_width(0) - 4, }, + settings = { + save_on_toggle = true, + }, }, keys = function() local keys = { { "H", function() - require("harpoon"):list():append() + require("harpoon"):list():add() end, desc = "Harpoon File", }, @@ -22,7 +25,7 @@ return { harpoon.ui:toggle_quick_menu(harpoon:list()) end, desc = "Harpoon Quick Menu", - } + }, } for i = 1, 5 do @@ -35,5 +38,5 @@ return { }) end return keys - end + end, } From ceb4855b434c8e7095bbf47cfc3b3647532d6a2c Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis Date: Mon, 22 Apr 2024 10:48:05 +0300 Subject: [PATCH 06/11] fix(trouble_v3): show error only when `trouble_v3` is enabled (#2989) --- .../plugins/extras/editor/trouble-v3.lua | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lua/lazyvim/plugins/extras/editor/trouble-v3.lua b/lua/lazyvim/plugins/extras/editor/trouble-v3.lua index 98e2db4b..6c964909 100644 --- a/lua/lazyvim/plugins/extras/editor/trouble-v3.lua +++ b/lua/lazyvim/plugins/extras/editor/trouble-v3.lua @@ -1,14 +1,16 @@ local Config = require("lazyvim.config") -for _, other in ipairs({ "aerial", "outline" }) do - local extra = "lazyvim.plugins.extras.editor." .. other - if vim.tbl_contains(Config.json.data.extras, extra) then - other = other:gsub("^%l", string.upper) - LazyVim.error({ - "**Trouble v3** includes support for document symbols.", - ("You currently have the **%s** extra enabled."):format(other), - "Please disable it in your config.", - }) +if vim.tbl_contains(Config.json.data.extras, "lazyvim.plugins.extras.editor.trouble-v3") then + for _, other in ipairs({ "aerial", "outline" }) do + local extra = "lazyvim.plugins.extras.editor." .. other + if vim.tbl_contains(Config.json.data.extras, extra) then + other = other:gsub("^%l", string.upper) + LazyVim.error({ + "**Trouble v3** includes support for document symbols.", + ("You currently have the **%s** extra enabled."):format(other), + "Please disable it in your config.", + }) + end end end From 15b09e800ba7fb0c9ca8270a77e71083396e9db1 Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Mon, 22 Apr 2024 13:34:16 +0545 Subject: [PATCH 07/11] feat(dot): add more filetypes (#2987) Adds dotenv files support for file names like prod.env .env .env.xyz Also adds configurationfiletypes rofi, wofi and vimfmrc --- lua/lazyvim/plugins/extras/util/dot.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/util/dot.lua b/lua/lazyvim/plugins/extras/util/dot.lua index cf5c048f..26af6a9b 100644 --- a/lua/lazyvim/plugins/extras/util/dot.lua +++ b/lua/lazyvim/plugins/extras/util/dot.lua @@ -35,12 +35,17 @@ return { end vim.filetype.add({ - extension = { rasi = "rasi" }, + extension = { rasi = "rasi", rofi = "rasi", wofi = "rasi" }, + filename = { + [".env"] = "dotenv", + ["vifmrc"] = "vim", + }, pattern = { [".*/waybar/config"] = "jsonc", [".*/mako/config"] = "dosini", [".*/kitty/*.conf"] = "bash", [".*/hypr/.*%.conf"] = "hyprlang", + ["%.env%.[%w_.-]+"] = "dotenv", }, }) From 6fdbc623e0a59220e754800df3b86788eca0813d Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 22 Apr 2024 09:54:29 +0200 Subject: [PATCH 08/11] fix(edgy): proper way of opening neo-tree. Fixes #2984 --- lua/lazyvim/plugins/extras/ui/edgy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/ui/edgy.lua b/lua/lazyvim/plugins/extras/ui/edgy.lua index 1a9c5e12..f2249edd 100644 --- a/lua/lazyvim/plugins/extras/ui/edgy.lua +++ b/lua/lazyvim/plugins/extras/ui/edgy.lua @@ -61,7 +61,7 @@ return { end, pinned = true, open = function() - vim.api.nvim_input("e") + require("neo-tree.command").execute({ dir = LazyVim.root() }) end, size = { height = 0.5 }, }, From 0fa63603afcb9b478c49a54d94314d20af00ae95 Mon Sep 17 00:00:00 2001 From: Iordanis Petkakis Date: Mon, 22 Apr 2024 10:56:00 +0300 Subject: [PATCH 09/11] fix(trouble_v3): keymap `previous` is deprecated, use `prev` instead (#2968) --- lua/lazyvim/plugins/extras/editor/trouble-v3.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lua/lazyvim/plugins/extras/editor/trouble-v3.lua b/lua/lazyvim/plugins/extras/editor/trouble-v3.lua index 6c964909..8a40498f 100644 --- a/lua/lazyvim/plugins/extras/editor/trouble-v3.lua +++ b/lua/lazyvim/plugins/extras/editor/trouble-v3.lua @@ -29,6 +29,20 @@ return { }, { "xL", "Trouble loclist toggle", desc = "Location List (Trouble)" }, { "xQ", "Trouble qflist toggle", desc = "Quickfix List (Trouble)" }, + { + "[q", + function() + if require("trouble").is_open() then + require("trouble").prev({ skip_groups = true, jump = true }) + else + local ok, err = pcall(vim.cmd.cprev) + if not ok then + vim.notify(err, vim.log.levels.ERROR) + end + end + end, + desc = "Previous Trouble/Quickfix Item", + }, }, }, From 9da13ef7e8a0b6c07e8e35f7c93dc77f3408d38b Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 22 Apr 2024 10:00:48 +0200 Subject: [PATCH 10/11] fix(trouble-v3): fix telescope integration --- .../plugins/extras/editor/trouble-v3.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/lua/lazyvim/plugins/extras/editor/trouble-v3.lua b/lua/lazyvim/plugins/extras/editor/trouble-v3.lua index 8a40498f..41a773d1 100644 --- a/lua/lazyvim/plugins/extras/editor/trouble-v3.lua +++ b/lua/lazyvim/plugins/extras/editor/trouble-v3.lua @@ -90,4 +90,22 @@ return { end end, }, + + { + "nvim-telescope/telescope.nvim", + optional = true, + opts = function(_, opts) + local open_with_trouble = require("trouble.sources.telescope").open + return vim.tbl_deep_extend("force", opts, { + defaults = { + mappings = { + i = { + [""] = open_with_trouble, + [""] = open_with_trouble, + }, + }, + }, + }) + end, + }, } From 9b4675ddde38fdae09978bd7dbdba83ec91f4d80 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 Apr 2024 10:19:46 +0200 Subject: [PATCH 11/11] chore(main): release 10.22.0 (#3037) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- CHANGELOG.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e3109d1..85059243 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [10.22.0](https://github.com/LazyVim/LazyVim/compare/v10.21.1...v10.22.0) (2024-04-22) + + +### Features + +* **dot:** add bashls and shellcheck ([#2879](https://github.com/LazyVim/LazyVim/issues/2879)) ([97480dc](https://github.com/LazyVim/LazyVim/commit/97480dc5d2dbb717b45a351e0b04835f138a9094)) +* **dot:** add more filetypes ([#2987](https://github.com/LazyVim/LazyVim/issues/2987)) ([15b09e8](https://github.com/LazyVim/LazyVim/commit/15b09e800ba7fb0c9ca8270a77e71083396e9db1)) +* **git:** `<leader>gb` for Git Blame Line ([9e3af10](https://github.com/LazyVim/LazyVim/commit/9e3af1070fc1932da322105708ebb32a2cd9572b)) +* **python:** use new `ruff` instead of `ruff_lsp` ([#3016](https://github.com/LazyVim/LazyVim/issues/3016)) ([cd04b58](https://github.com/LazyVim/LazyVim/commit/cd04b58fe3f7299fbca75e7eb47287617ac23fcf)) + + +### Bug Fixes + +* **edgy:** proper way of opening neo-tree. Fixes [#2984](https://github.com/LazyVim/LazyVim/issues/2984) ([6fdbc62](https://github.com/LazyVim/LazyVim/commit/6fdbc623e0a59220e754800df3b86788eca0813d)) +* **harpoon:** harpoon2 deprecated message ([#2920](https://github.com/LazyVim/LazyVim/issues/2920)) ([79fed97](https://github.com/LazyVim/LazyVim/commit/79fed97f2357b2969cb23d106137978ca7cdffb4)) +* **harpoon:** optimizes harpoon keys ([#2877](https://github.com/LazyVim/LazyVim/issues/2877)) ([50b7f42](https://github.com/LazyVim/LazyVim/commit/50b7f426f287ecfc542dd9c197e430b0aca8af04)) +* **mini.pairs:** better default for ```` ([32eacde](https://github.com/LazyVim/LazyVim/commit/32eacde793fddcca0bcfbbd494b6aa8b2c870d0f)) +* **toggle:** use new `inlay_hint.enable()` signature ([#3013](https://github.com/LazyVim/LazyVim/issues/3013)) ([5f92dc5](https://github.com/LazyVim/LazyVim/commit/5f92dc5304b99a3e76dca878d9b47557fb64f384)) +* **trouble_v3:** keymap `previous` is deprecated, use `prev` instead ([#2968](https://github.com/LazyVim/LazyVim/issues/2968)) ([0fa6360](https://github.com/LazyVim/LazyVim/commit/0fa63603afcb9b478c49a54d94314d20af00ae95)) +* **trouble_v3:** show error only when `trouble_v3` is enabled ([#2989](https://github.com/LazyVim/LazyVim/issues/2989)) ([ceb4855](https://github.com/LazyVim/LazyVim/commit/ceb4855b434c8e7095bbf47cfc3b3647532d6a2c)) +* **trouble-v3:** fix telescope integration ([9da13ef](https://github.com/LazyVim/LazyVim/commit/9da13ef7e8a0b6c07e8e35f7c93dc77f3408d38b)) + ## [10.21.1](https://github.com/LazyVim/LazyVim/compare/v10.21.0...v10.21.1) (2024-03-29)