From a219e105b0e86316edfedb57f1fa267a764eab13 Mon Sep 17 00:00:00 2001
From: Ben Puryear <54869170+Ben10164@users.noreply.github.com>
Date: Fri, 19 Jul 2024 00:33:49 -0700
Subject: [PATCH 01/22] feat(lang): add OCaml (#4079)
## Description
Adds an extra that adds language support for ocaml.
Adds LSP and completions. Fairly simple/small config.
## Related Issue(s)
None
## Screenshots
## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
---
lua/lazyvim/plugins/extras/lang/ocaml.lua | 39 +++++++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 lua/lazyvim/plugins/extras/lang/ocaml.lua
diff --git a/lua/lazyvim/plugins/extras/lang/ocaml.lua b/lua/lazyvim/plugins/extras/lang/ocaml.lua
new file mode 100644
index 00000000..d4485856
--- /dev/null
+++ b/lua/lazyvim/plugins/extras/lang/ocaml.lua
@@ -0,0 +1,39 @@
+return {
+ recommended = function()
+ return LazyVim.extras.wants({
+ ft = { "ml", "mli", "cmi", "cmo", "cmx", "cma", "cmxa", "cmxs", "cmt", "cmti", "opam" },
+ root = { "merlin.opam", "dune-project" },
+ })
+ end,
+ {
+ "nvim-treesitter/nvim-treesitter",
+ opts = function(_, opts)
+ if type(opts.ensure_installed) == "table" then
+ vim.list_extend(opts.ensure_installed, { "ocaml" })
+ end
+ end,
+ },
+ {
+ "neovim/nvim-lspconfig",
+ opts = {
+ servers = {
+ ocamllsp = {
+ get_language_id = function(_, ftype)
+ return language_id_of[ftype]
+ end,
+ root_dir = function(fname)
+ return require("lspconfig.util").root_pattern(
+ "*.opam",
+ "esy.json",
+ "package.json",
+ ".git",
+ "dune-project",
+ "dune-workspace",
+ "*.ml"
+ )(fname)
+ end,
+ },
+ },
+ },
+ },
+}
From 5795be3c195699719d135c45a96825b09719268b Mon Sep 17 00:00:00 2001
From: folke
Date: Fri, 19 Jul 2024 07:34:55 +0000
Subject: [PATCH 02/22] chore(build): auto-generate docs
---
doc/LazyVim.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/LazyVim.txt b/doc/LazyVim.txt
index fcd74ffc..be7d61e6 100644
--- a/doc/LazyVim.txt
+++ b/doc/LazyVim.txt
@@ -1,4 +1,4 @@
-*LazyVim.txt* For Neovim Last change: 2024 July 18
+*LazyVim.txt* For Neovim Last change: 2024 July 19
==============================================================================
Table of Contents *LazyVim-table-of-contents*
From 3e29fdf478383034c48477dd04fd433a7c9327ee Mon Sep 17 00:00:00 2001
From: Ben Puryear <54869170+Ben10164@users.noreply.github.com>
Date: Fri, 19 Jul 2024 00:38:55 -0700
Subject: [PATCH 03/22] feat(lang): add Lean 4 support (#4080)
## Description
Adds language support for lean, a popular proof assistant and theorem
prover.
## Related Issue(s)
None
## Screenshots
Language Server
Lean Execution (infobox on the right)
Keymaps
Many More Commands
## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
---------
Co-authored-by: Folke Lemaitre
---
lua/lazyvim/plugins/extras/lang/lean.lua | 125 +++++++++++++++++++++++
1 file changed, 125 insertions(+)
create mode 100644 lua/lazyvim/plugins/extras/lang/lean.lua
diff --git a/lua/lazyvim/plugins/extras/lang/lean.lua b/lua/lazyvim/plugins/extras/lang/lean.lua
new file mode 100644
index 00000000..9ac37f7d
--- /dev/null
+++ b/lua/lazyvim/plugins/extras/lang/lean.lua
@@ -0,0 +1,125 @@
+return {
+ recommended = function()
+ return LazyVim.extras.wants({
+ ft = { "lean" },
+ root = { "lean-toolchain" },
+ })
+ end,
+ "Julian/lean.nvim",
+ event = { "BufReadPre *.lean", "BufNewFile *.lean" },
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ },
+
+ -- see details below for full configuration options
+ opts = {
+ -- Enable the Lean language server(s)?
+ --
+ -- false to disable, otherwise should be a table of options to pass to `leanls`
+ --
+ -- See https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#leanls for details.
+ -- In particular ensure you have followed instructions setting up a callback
+ -- for `LspAttach` which sets your key bindings!
+ lsp = {
+ init_options = {
+ -- See Lean.Lsp.InitializationOptions for details and further options.
+
+ -- Time (in milliseconds) which must pass since latest edit until elaboration begins.
+ -- Lower values may make editing feel faster at the cost of higher CPU usage.
+ -- Note that lean.nvim changes the Lean default for this value!
+ editDelay = 0,
+
+ -- Whether to signal that widgets are supported.
+ hasWidgets = true,
+ },
+ },
+
+ ft = {
+ -- A list of patterns which will be used to protect any matching
+ -- Lean file paths from being accidentally modified (by marking the
+ -- buffer as `nomodifiable`).
+ nomodifiable = {
+ -- by default, this list includes the Lean standard libraries,
+ -- as well as files within dependency directories (e.g. `_target`)
+ -- Set this to an empty table to disable.
+ },
+ },
+
+ -- Abbreviation support
+ abbreviations = {
+ -- Enable expanding of unicode abbreviations?
+ enable = true,
+ -- additional abbreviations:
+ extra = {
+ -- Add a \wknight abbreviation to insert ♘
+ --
+ -- Note that the backslash is implied, and that you of
+ -- course may also use a snippet engine directly to do
+ -- this if so desired.
+ wknight = "♘",
+ },
+ -- Change if you don't like the backslash
+ -- (comma is a popular choice on French keyboards)
+ leader = "\\",
+ },
+
+ -- Enable suggested mappings?
+ --
+ -- false by default, true to enable
+ mappings = true,
+
+ -- Infoview support
+ infoview = {
+ -- Automatically open an infoview on entering a Lean buffer?
+ -- Should be a function that will be called anytime a new Lean file
+ -- is opened. Return true to open an infoview, otherwise false.
+ -- Setting this to `true` is the same as `function() return true end`,
+ -- i.e. autoopen for any Lean file, or setting it to `false` is the
+ -- same as `function() return false end`, i.e. never autoopen.
+ autoopen = true,
+
+ -- Set infoview windows' starting dimensions.
+ -- Windows are opened horizontally or vertically depending on spacing.
+ width = 50,
+ height = 20,
+
+ -- Put the infoview on the top or bottom when horizontal?
+ -- top | bottom
+ horizontal_position = "bottom",
+
+ -- Always open the infoview window in a separate tabpage.
+ -- Might be useful if you are using a screen reader and don't want too
+ -- many dynamic updates in the terminal at the same time.
+ -- Note that `height` and `width` will be ignored in this case.
+ separate_tab = false,
+
+ -- Show indicators for pin locations when entering an infoview window?
+ -- always | never | auto (= only when there are multiple pins)
+ indicators = "auto",
+ },
+
+ -- Progress bar support
+ progress_bars = {
+ -- Enable the progress bars?
+ enable = true,
+ -- What character should be used for the bars?
+ character = "│",
+ -- Use a different priority for the signs
+ priority = 10,
+ },
+
+ -- Redirect Lean's stderr messages somehwere (to a buffer by default)
+ stderr = {
+ enable = true,
+ -- height of the window
+ height = 5,
+ -- a callback which will be called with (multi-line) stderr output
+ -- e.g., use:
+ -- on_lines = function(lines) vim.notify(lines) end
+ -- if you want to redirect stderr to `vim.notify`.
+ -- The default implementation will redirect to a dedicated stderr
+ -- window.
+ on_lines = nil,
+ },
+ },
+}
From 783949810855556dd12ed2685e62fb37a4c9504d Mon Sep 17 00:00:00 2001
From: Kevin Robayna
Date: Fri, 19 Jul 2024 10:09:57 +0100
Subject: [PATCH 04/22] feat(extras): improve ruby extra by letting user chose
(#3652)
## What is this PR for?
Shopify started working on its own LSP
(https://github.com/Shopify/ruby-lsp) and it performs way better than
Solargraph which has a lot of limitations. This paired with sorbet gives
better IntelliSense when navigating the code.
This PR follows the same approach as Python and lets the user configure
through vim.g options the lsp and formatter for ruby, without overriding
any configuration.
## Does this PR fix an existing issue?
One caveat though is that RubyLsp does not work very well with NeoVim <
0.10 https://github.com/Shopify/ruby-lsp/blob/main/EDITORS.md#neovim
## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
---
lua/lazyvim/plugins/extras/lang/ruby.lua | 43 +++++++++++++++++++++++-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --git a/lua/lazyvim/plugins/extras/lang/ruby.lua b/lua/lazyvim/plugins/extras/lang/ruby.lua
index c70e645d..6eb4fce5 100644
--- a/lua/lazyvim/plugins/extras/lang/ruby.lua
+++ b/lua/lazyvim/plugins/extras/lang/ruby.lua
@@ -1,3 +1,17 @@
+if lazyvim_docs then
+ -- LSP Server to use for Ruby.
+ -- Set to "solargraph" to use solargraph instead of ruby_lsp.
+ vim.g.lazyvim_ruby_lsp = "ruby_lsp"
+ vim.g.lazyvim_ruby_formatter = "rubocop"
+end
+
+local lsp = vim.g.lazyvim_ruby_lsp or "ruby_lsp"
+if vim.fn.has("nvim-0.10") == 0 then
+ -- ruby_lsp does not work well with Neovim < 0.10
+ lsp = vim.g.lazyvim_ruby_lsp or "solargraph"
+end
+local formatter = vim.g.lazyvim_ruby_formatter or "rubocop"
+
return {
recommended = function()
return LazyVim.extras.wants({
@@ -11,12 +25,29 @@ return {
},
{
"neovim/nvim-lspconfig",
+ ---@class PluginLspOpts
opts = {
+ ---@type lspconfig.options
servers = {
- solargraph = {},
+ ruby_lsp = {
+ enabled = lsp == "ruby_lsp",
+ },
+ solargraph = {
+ enabled = lsp == "solargraph",
+ },
+ rubocop = {
+ enabled = formatter == "rubocop",
+ },
+ standardrb = {
+ enabled = formatter == "standardrb",
+ },
},
},
},
+ {
+ "williamboman/mason.nvim",
+ opts = { ensure_installed = { "erb-formatter", "erb-lint" } },
+ },
{
"mfussenegger/nvim-dap",
optional = true,
@@ -27,6 +58,16 @@ return {
end,
},
},
+ {
+ "stevearc/conform.nvim",
+ optional = true,
+ opts = {
+ formatters_by_ft = {
+ ruby = { formatter },
+ eruby = { "erb-format" },
+ },
+ },
+ },
{
"nvim-neotest/neotest",
optional = true,
From 64afb5f00718cb2735bd68577dfac357be790cb0 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Fri, 19 Jul 2024 11:50:05 +0200
Subject: [PATCH 05/22] chore(main): release 12.33.0 (#4102)
:robot: I have created a release *beep* *boop*
---
##
[12.33.0](https://github.com/LazyVim/LazyVim/compare/v12.32.0...v12.33.0)
(2024-07-19)
### Features
* **extras:** improve ruby extra by letting user chose
([#3652](https://github.com/LazyVim/LazyVim/issues/3652))
([7839498](https://github.com/LazyVim/LazyVim/commit/783949810855556dd12ed2685e62fb37a4c9504d))
* **lang:** add Lean 4 support
([#4080](https://github.com/LazyVim/LazyVim/issues/4080))
([3e29fdf](https://github.com/LazyVim/LazyVim/commit/3e29fdf478383034c48477dd04fd433a7c9327ee))
* **lang:** add OCaml
([#4079](https://github.com/LazyVim/LazyVim/issues/4079))
([a219e10](https://github.com/LazyVim/LazyVim/commit/a219e105b0e86316edfedb57f1fa267a764eab13))
### Bug Fixes
* **ui:** trouble lualine component
([f9fdb35](https://github.com/LazyVim/LazyVim/commit/f9fdb356f2362e5ae4ef490944b1957b49dc6680))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
.github/.release-please-manifest.json | 2 +-
CHANGELOG.md | 14 ++++++++++++++
lua/lazyvim/config/init.lua | 2 +-
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json
index 9f92a4d3..98ca8693 100644
--- a/.github/.release-please-manifest.json
+++ b/.github/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "12.32.0"
+ ".": "12.33.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b148a091..48c3581f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,19 @@
# Changelog
+## [12.33.0](https://github.com/LazyVim/LazyVim/compare/v12.32.0...v12.33.0) (2024-07-19)
+
+
+### Features
+
+* **extras:** improve ruby extra by letting user chose ([#3652](https://github.com/LazyVim/LazyVim/issues/3652)) ([7839498](https://github.com/LazyVim/LazyVim/commit/783949810855556dd12ed2685e62fb37a4c9504d))
+* **lang:** add Lean 4 support ([#4080](https://github.com/LazyVim/LazyVim/issues/4080)) ([3e29fdf](https://github.com/LazyVim/LazyVim/commit/3e29fdf478383034c48477dd04fd433a7c9327ee))
+* **lang:** add OCaml ([#4079](https://github.com/LazyVim/LazyVim/issues/4079)) ([a219e10](https://github.com/LazyVim/LazyVim/commit/a219e105b0e86316edfedb57f1fa267a764eab13))
+
+
+### Bug Fixes
+
+* **ui:** trouble lualine component ([f9fdb35](https://github.com/LazyVim/LazyVim/commit/f9fdb356f2362e5ae4ef490944b1957b49dc6680))
+
## [12.32.0](https://github.com/LazyVim/LazyVim/compare/v12.31.0...v12.32.0) (2024-07-18)
diff --git a/lua/lazyvim/config/init.lua b/lua/lazyvim/config/init.lua
index a95f519f..4d154371 100644
--- a/lua/lazyvim/config/init.lua
+++ b/lua/lazyvim/config/init.lua
@@ -3,7 +3,7 @@ _G.LazyVim = require("lazyvim.util")
---@class LazyVimConfig: LazyVimOptions
local M = {}
-M.version = "12.32.0" -- x-release-please-version
+M.version = "12.33.0" -- x-release-please-version
LazyVim.config = M
---@class LazyVimOptions
From 578f06e1401defbbc0a82f9ff1fb505564d038cf Mon Sep 17 00:00:00 2001
From: abeldekat <58370433+abeldekat@users.noreply.github.com>
Date: Sat, 20 Jul 2024 11:48:11 +0200
Subject: [PATCH 06/22] perf(core): defer clipboard because xsel and pbcopy can
be slow (#4120)
## Description
See [this](https://github.com/LazyVim/LazyVim/discussions/4112)
discussion
TLDR:
Startup time performance is affected quite significantly when the
clipboard provider is `xsel`(linux) or `pbcopy`(macos). I expect an
improvement in these cases, especially on older pc's.
This PR resets `vim.opt.clipboard` after the `options` are loaded. Then,
on `VeryLazy`, the setting is restored.
I also tested with `yanky`.
Relevant prints:
1. Before resetting `vim.opt.clipboard` in `init`,
`vim.print(vim.opt.clipboard)` yields a table which will be captured:
```lua
--- fields
_name = "clipboard",
_value = "unnamedplus",
--- more fields
```
2. Set `vim.opt.clipboard = ""` and `vim.print(vim.opt.clipboard)`, also
yields a table:
```lua
--- fields
_name = "clipboard",
_value = "",
--- more fields
```
## Related Issue(s)
## Screenshots
## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
Co-authored-by: abeldekat
---
lua/lazyvim/config/init.lua | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lua/lazyvim/config/init.lua b/lua/lazyvim/config/init.lua
index 4d154371..90051817 100644
--- a/lua/lazyvim/config/init.lua
+++ b/lua/lazyvim/config/init.lua
@@ -161,6 +161,7 @@ end
---@type LazyVimOptions
local options
+local lazy_clipboard
---@param opts? LazyVimOptions
function M.setup(opts)
@@ -181,6 +182,9 @@ function M.setup(opts)
M.load("autocmds")
end
M.load("keymaps")
+ if lazy_clipboard ~= nil then
+ vim.opt.clipboard = lazy_clipboard
+ end
LazyVim.format.setup()
LazyVim.news.setup()
@@ -285,6 +289,9 @@ function M.init()
-- this is needed to make sure options will be correctly applied
-- after installing missing plugins
M.load("options")
+ -- defer built-in clipboard handling: "xsel" and "pbcopy" can be slow
+ lazy_clipboard = vim.opt.clipboard
+ vim.opt.clipboard = ""
if vim.g.deprecation_warnings == false then
vim.deprecate = function() end
From 6f91b406ddf2b298efe43f6467ca0a9103881a88 Mon Sep 17 00:00:00 2001
From: folke
Date: Sat, 20 Jul 2024 09:49:07 +0000
Subject: [PATCH 07/22] chore(build): auto-generate docs
---
doc/LazyVim.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/LazyVim.txt b/doc/LazyVim.txt
index be7d61e6..9a318334 100644
--- a/doc/LazyVim.txt
+++ b/doc/LazyVim.txt
@@ -1,4 +1,4 @@
-*LazyVim.txt* For Neovim Last change: 2024 July 19
+*LazyVim.txt* For Neovim Last change: 2024 July 20
==============================================================================
Table of Contents *LazyVim-table-of-contents*
From 3d1f961232e0d286896e8c3026c9e2dbb3c63808 Mon Sep 17 00:00:00 2001
From: Folke Lemaitre
Date: Sat, 20 Jul 2024 17:04:01 +0200
Subject: [PATCH 08/22] refactor: which-key mappings
---
lua/lazyvim/plugins/editor.lua | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua
index 39108009..f893b355 100644
--- a/lua/lazyvim/plugins/editor.lua
+++ b/lua/lazyvim/plugins/editor.lua
@@ -169,13 +169,6 @@ return {
{
mode = { "n", "v" },
{ "", group = "tabs" },
- {
- "b",
- group = "buffer",
- expand = function()
- return require("which-key.extras").expand.buf()
- end,
- },
{ "c", group = "code" },
{ "f", group = "file/find" },
{ "g", group = "git" },
@@ -183,6 +176,19 @@ return {
{ "q", group = "quit/session" },
{ "s", group = "search" },
{ "u", group = "ui", icon = { icon = " ", color = "cyan" } },
+ { "x", group = "diagnostics/quickfix", icon = { icon = " ", color = "green" } },
+ { "[", group = "prev" },
+ { "]", group = "next" },
+ { "g", group = "goto" },
+ { "gs", group = "surround" },
+ { "z", group = "fold" },
+ {
+ "b",
+ group = "buffer",
+ expand = function()
+ return require("which-key.extras").expand.buf()
+ end,
+ },
{
"w",
group = "windows",
@@ -191,12 +197,8 @@ return {
return require("which-key.extras").expand.win()
end,
},
- { "x", group = "diagnostics/quickfix", icon = { icon = " ", color = "green" } },
- { "[", group = "prev" },
- { "]", group = "next" },
- { "g", group = "goto" },
- { "gs", group = "surround" },
- { "z", group = "fold" },
+ -- better descriptions
+ { "gx", desc = "Open with system app" },
},
},
},
From eed91a3e4c1521dd839d1a8bc09bdd98ac2fb874 Mon Sep 17 00:00:00 2001
From: Folke Lemaitre
Date: Sat, 20 Jul 2024 17:14:07 +0200
Subject: [PATCH 09/22] fix(conform): changes for new conform.nvim config
---
lua/lazyvim/plugins/formatting.lua | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/lua/lazyvim/plugins/formatting.lua b/lua/lazyvim/plugins/formatting.lua
index f4160b4d..ae32c0ef 100644
--- a/lua/lazyvim/plugins/formatting.lua
+++ b/lua/lazyvim/plugins/formatting.lua
@@ -1,6 +1,6 @@
local M = {}
----@param opts ConformOpts
+---@param opts conform.setupOpts
function M.setup(_, opts)
for _, key in ipairs({ "format_on_save", "format_after_save" }) do
if opts[key] then
@@ -10,6 +10,10 @@ function M.setup(_, opts)
opts[key] = nil
end
end
+ ---@diagnostic disable-next-line: undefined-field
+ if opts.format then
+ LazyVim.warn("**conform.nvim** `opts.format` is deprecated. Please use `opts.default_format_opts` instead.")
+ end
require("conform").setup(opts)
end
@@ -37,8 +41,7 @@ return {
priority = 100,
primary = true,
format = function(buf)
- local opts = LazyVim.opts("conform.nvim")
- require("conform").format(LazyVim.merge({}, opts.format, { bufnr = buf }))
+ require("conform").format({ bufnr = buf })
end,
sources = function(buf)
local ret = require("conform").list_formatters(buf)
@@ -59,16 +62,14 @@ return {
"Please refer to the docs at https://www.lazyvim.org/plugins/formatting",
}, { title = "LazyVim" })
end
- ---@class ConformOpts
+ ---@type conform.setupOpts
local opts = {
- -- LazyVim will use these options when formatting with the conform.nvim formatter
- format = {
+ default_format_opts = {
timeout_ms = 3000,
async = false, -- not recommended to change
quiet = false, -- not recommended to change
lsp_format = "fallback", -- not recommended to change
},
- ---@type table
formatters_by_ft = {
lua = { "stylua" },
fish = { "fish_indent" },
From 0d561a3226b46f6a44c4f2c9be2288f3b52cc351 Mon Sep 17 00:00:00 2001
From: Folke Lemaitre
Date: Sat, 20 Jul 2024 21:39:39 +0200
Subject: [PATCH 10/22] feat(editor): replace nvim-spectre with grug-far.nvim
(#4099)
## Description
I'm considering to replace
[nvim-spectre](https://github.com/nvim-pack/nvim-spectre) with
[grug-far.nvim](https://github.com/MagicDuck/grug-far.nvim).
It has a better ui and I like the workflow better.
I won't merge this right away. I'm mostly looking for feedback on
whether this would be a good thing and whether the defaults option I've
added seem ok.
## Related Issue(s)
## Screenshots

## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
---
NEWS.md | 3 +++
lua/lazyvim/config/autocmds.lua | 1 +
lua/lazyvim/plugins/editor.lua | 24 ++++++++++++++-----
.../plugins/extras/ui/mini-animate.lua | 7 ++++++
4 files changed, 29 insertions(+), 6 deletions(-)
diff --git a/NEWS.md b/NEWS.md
index 3abd43b7..1abf2ec8 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,6 +2,9 @@
## 12.x
+- [nvim-spectre](https://github.com/nvim-pack/nvim-spectre) has been removed in favor of [grug-far.nvim](https://github.com/MagicDuck/grug-far.nvim).
+ **grug-far.nvim** has a great UI and feels more intuitive to use.
+
- This **news** is now also available on the website at [https://www.lazyvim.org/news](https://www.lazyvim.org/news)
- **prettier** extra now works for all prettier supported filetypes
diff --git a/lua/lazyvim/config/autocmds.lua b/lua/lazyvim/config/autocmds.lua
index 1440d069..edb392db 100644
--- a/lua/lazyvim/config/autocmds.lua
+++ b/lua/lazyvim/config/autocmds.lua
@@ -55,6 +55,7 @@ vim.api.nvim_create_autocmd("FileType", {
group = augroup("close_with_q"),
pattern = {
"PlenaryTestPopup",
+ "grug-far",
"help",
"lspinfo",
"notify",
diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua
index f893b355..1f96f8a2 100644
--- a/lua/lazyvim/plugins/editor.lua
+++ b/lua/lazyvim/plugins/editor.lua
@@ -128,13 +128,25 @@ return {
-- search/replace in multiple files
{
- "nvim-pack/nvim-spectre",
- build = false,
- cmd = "Spectre",
- opts = { open_cmd = "noswapfile vnew" },
- -- stylua: ignore
+ "MagicDuck/grug-far.nvim",
+ opts = { headerMaxWidth = 80 },
+ cmd = "GrugFar",
keys = {
- { "sr", function() require("spectre").open() end, desc = "Replace in Files (Spectre)" },
+ {
+ "sr",
+ function()
+ local is_visual = vim.fn.mode():lower():find("v")
+ if is_visual then -- needed to make visual selection work
+ vim.cmd([[normal! v]])
+ end
+ local grug = require("grug-far");
+ (is_visual and grug.with_visual_selection or grug.grug_far)({
+ prefills = { filesFilter = "*." .. vim.fn.expand("%:e") },
+ })
+ end,
+ mode = { "n", "v" },
+ desc = "Search and Replace",
+ },
},
},
diff --git a/lua/lazyvim/plugins/extras/ui/mini-animate.lua b/lua/lazyvim/plugins/extras/ui/mini-animate.lua
index 571bee26..1136230a 100644
--- a/lua/lazyvim/plugins/extras/ui/mini-animate.lua
+++ b/lua/lazyvim/plugins/extras/ui/mini-animate.lua
@@ -14,6 +14,13 @@ return {
end, { expr = true })
end
+ vim.api.nvim_create_autocmd("FileType", {
+ pattern = "grug-far",
+ callback = function()
+ vim.b.minianimate_disable = true
+ end,
+ })
+
LazyVim.toggle.map("ua", {
name = "Mini Animate",
get = function()
From c8ab5d7554da9f1eff69f5d6d8a0df38309d9f81 Mon Sep 17 00:00:00 2001
From: Folke Lemaitre
Date: Sat, 20 Jul 2024 22:06:16 +0200
Subject: [PATCH 11/22] fix(toggle): safe toggle get
---
lua/lazyvim/util/toggle.lua | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/lua/lazyvim/util/toggle.lua b/lua/lazyvim/util/toggle.lua
index c8027666..4e0ba494 100644
--- a/lua/lazyvim/util/toggle.lua
+++ b/lua/lazyvim/util/toggle.lua
@@ -39,14 +39,21 @@ function M.wk(lhs, toggle)
if not LazyVim.has("which-key.nvim") then
return
end
+ local function safe_get()
+ local ok, enabled = pcall(toggle.get)
+ if not ok then
+ LazyVim.error({ "Failed to get toggle state for **" .. toggle.name .. "**:\n", enabled }, { once = true })
+ end
+ return enabled
+ end
require("which-key").add({
{
lhs,
icon = function()
- return toggle.get() and { icon = " ", color = "green" } or { icon = " ", color = "yellow" }
+ return safe_get() and { icon = " ", color = "green" } or { icon = " ", color = "yellow" }
end,
desc = function()
- return (toggle.get() and "Disable " or "Enable ") .. toggle.name
+ return (safe_get() and "Disable " or "Enable ") .. toggle.name
end,
},
})
From a997152eb2307380888d640440e0732493f82727 Mon Sep 17 00:00:00 2001
From: Shaun Clayton
Date: Sat, 20 Jul 2024 16:14:33 -0400
Subject: [PATCH 12/22] 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

## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
---------
Co-authored-by: Folke Lemaitre
---
lua/lazyvim/plugins/ui.lua | 54 +++++++++++++++++++++++---------------
1 file changed, 33 insertions(+), 21 deletions(-)
diff --git a/lua/lazyvim/plugins/ui.lua b/lua/lazyvim/plugins/ui.lua
index ed17182d..14807497 100644
--- a/lua/lazyvim/plugins/ui.lua
+++ b/lua/lazyvim/plugins/ui.lua
@@ -225,28 +225,40 @@ return {
{
"lukas-reineke/indent-blankline.nvim",
event = "LazyFile",
- opts = {
- indent = {
- char = "│",
- tab_char = "│",
- },
- scope = { show_start = false, show_end = false },
- exclude = {
- filetypes = {
- "help",
- "alpha",
- "dashboard",
- "neo-tree",
- "Trouble",
- "trouble",
- "lazy",
- "mason",
- "notify",
- "toggleterm",
- "lazyterm",
+ opts = function()
+ LazyVim.toggle.map("ug", {
+ name = "Indention Guides",
+ get = function()
+ return require("ibl.config").get_config(0).enabled
+ end,
+ set = function(state)
+ require("ibl").setup_buffer(0, { enabled = state })
+ end,
+ })
+
+ return {
+ indent = {
+ char = "│",
+ tab_char = "│",
},
- },
- },
+ scope = { show_start = false, show_end = false },
+ exclude = {
+ filetypes = {
+ "help",
+ "alpha",
+ "dashboard",
+ "neo-tree",
+ "Trouble",
+ "trouble",
+ "lazy",
+ "mason",
+ "notify",
+ "toggleterm",
+ "lazyterm",
+ },
+ },
+ }
+ end,
main = "ibl",
},
From 43dbe0e60d0083f38ab5113a82d9c74229895af2 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Sat, 20 Jul 2024 22:27:04 +0200
Subject: [PATCH 13/22] chore(main): release 12.34.0 (#4121)
:robot: I have created a release *beep* *boop*
---
##
[12.34.0](https://github.com/LazyVim/LazyVim/compare/v12.33.0...v12.34.0)
(2024-07-20)
### Features
* **editor:** replace nvim-spectre with grug-far.nvim
([#4099](https://github.com/LazyVim/LazyVim/issues/4099))
([0d561a3](https://github.com/LazyVim/LazyVim/commit/0d561a3226b46f6a44c4f2c9be2288f3b52cc351))
* **indent-blankline:** add which-key toggles
([#4122](https://github.com/LazyVim/LazyVim/issues/4122))
([a997152](https://github.com/LazyVim/LazyVim/commit/a997152eb2307380888d640440e0732493f82727))
### Bug Fixes
* **conform:** changes for new conform.nvim config
([eed91a3](https://github.com/LazyVim/LazyVim/commit/eed91a3e4c1521dd839d1a8bc09bdd98ac2fb874))
* **toggle:** safe toggle get
([c8ab5d7](https://github.com/LazyVim/LazyVim/commit/c8ab5d7554da9f1eff69f5d6d8a0df38309d9f81))
### Performance Improvements
* **core:** defer clipboard because xsel and pbcopy can be slow
([#4120](https://github.com/LazyVim/LazyVim/issues/4120))
([578f06e](https://github.com/LazyVim/LazyVim/commit/578f06e1401defbbc0a82f9ff1fb505564d038cf))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
.github/.release-please-manifest.json | 2 +-
CHANGELOG.md | 19 +++++++++++++++++++
lua/lazyvim/config/init.lua | 2 +-
3 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json
index 98ca8693..67384c64 100644
--- a/.github/.release-please-manifest.json
+++ b/.github/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "12.33.0"
+ ".": "12.34.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 48c3581f..09dbee59 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,24 @@
# Changelog
+## [12.34.0](https://github.com/LazyVim/LazyVim/compare/v12.33.0...v12.34.0) (2024-07-20)
+
+
+### Features
+
+* **editor:** replace nvim-spectre with grug-far.nvim ([#4099](https://github.com/LazyVim/LazyVim/issues/4099)) ([0d561a3](https://github.com/LazyVim/LazyVim/commit/0d561a3226b46f6a44c4f2c9be2288f3b52cc351))
+* **indent-blankline:** add which-key toggles ([#4122](https://github.com/LazyVim/LazyVim/issues/4122)) ([a997152](https://github.com/LazyVim/LazyVim/commit/a997152eb2307380888d640440e0732493f82727))
+
+
+### Bug Fixes
+
+* **conform:** changes for new conform.nvim config ([eed91a3](https://github.com/LazyVim/LazyVim/commit/eed91a3e4c1521dd839d1a8bc09bdd98ac2fb874))
+* **toggle:** safe toggle get ([c8ab5d7](https://github.com/LazyVim/LazyVim/commit/c8ab5d7554da9f1eff69f5d6d8a0df38309d9f81))
+
+
+### Performance Improvements
+
+* **core:** defer clipboard because xsel and pbcopy can be slow ([#4120](https://github.com/LazyVim/LazyVim/issues/4120)) ([578f06e](https://github.com/LazyVim/LazyVim/commit/578f06e1401defbbc0a82f9ff1fb505564d038cf))
+
## [12.33.0](https://github.com/LazyVim/LazyVim/compare/v12.32.0...v12.33.0) (2024-07-19)
diff --git a/lua/lazyvim/config/init.lua b/lua/lazyvim/config/init.lua
index 90051817..d6badcdf 100644
--- a/lua/lazyvim/config/init.lua
+++ b/lua/lazyvim/config/init.lua
@@ -3,7 +3,7 @@ _G.LazyVim = require("lazyvim.util")
---@class LazyVimConfig: LazyVimOptions
local M = {}
-M.version = "12.33.0" -- x-release-please-version
+M.version = "12.34.0" -- x-release-please-version
LazyVim.config = M
---@class LazyVimOptions
From 61ce1cfaaf8365e3b5c12b1509064579ab7d80b5 Mon Sep 17 00:00:00 2001
From: dotfrag <17456867+dotfrag@users.noreply.github.com>
Date: Sun, 21 Jul 2024 13:24:28 +0300
Subject: [PATCH 14/22] feat(python): default to new ruff instead of ruff_lsp
(#4126)
## Description
Change default python ruff lsp from `ruff_lsp` to `ruff`. It is now
marked as stable. I have been using it for a few days without any
problems. I use python for relatively small to medium projects. Maybe
someone who is using python more rigorously has better feedback.
References:
https://github.com/astral-sh/ruff-lsp (see note)
https://github.com/astral-sh/ruff/releases/tag/0.5.3
https://docs.astral.sh/ruff/editors/setup/#neovim
Also the issue in https://github.com/LazyVim/LazyVim/pull/3057 has been
resolved. I tested it and I only get 1 `ruff server` process per nvim
instance. The processes close correctly when nvim is closed.
## Checklist
- [x] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
---
lua/lazyvim/plugins/extras/lang/python.lua | 43 ++++++++++++++--------
lua/lazyvim/plugins/lsp/init.lua | 3 ++
2 files changed, 30 insertions(+), 16 deletions(-)
diff --git a/lua/lazyvim/plugins/extras/lang/python.lua b/lua/lazyvim/plugins/extras/lang/python.lua
index 399f28e3..a06b63d7 100644
--- a/lua/lazyvim/plugins/extras/lang/python.lua
+++ b/lua/lazyvim/plugins/extras/lang/python.lua
@@ -2,11 +2,12 @@ if lazyvim_docs then
-- LSP Server to use for Python.
-- Set to "basedpyright" to use basedpyright instead of pyright.
vim.g.lazyvim_python_lsp = "pyright"
- vim.g.lazyvim_python_ruff = "ruff_lsp"
+ -- Set to "ruff_lsp" to use the old LSP implementation version.
+ vim.g.lazyvim_python_ruff = "ruff"
end
local lsp = vim.g.lazyvim_python_lsp or "pyright"
-local ruff = vim.g.lazyvim_python_ruff or "ruff_lsp"
+local ruff = vim.g.lazyvim_python_ruff or "ruff"
return {
recommended = function()
@@ -30,22 +31,22 @@ return {
"neovim/nvim-lspconfig",
opts = {
servers = {
- pyright = {
- enabled = lsp == "pyright",
- },
- basedpyright = {
- enabled = lsp == "basedpyright",
- },
- [lsp] = {
- enabled = true,
+ ruff = {
+ cmd_env = { RUFF_TRACE = "messages" },
+ init_options = {
+ settings = {
+ logLevel = "error",
+ },
+ },
+ keys = {
+ {
+ "co",
+ LazyVim.lsp.action["source.organizeImports"],
+ desc = "Organize Imports",
+ },
+ },
},
ruff_lsp = {
- enabled = ruff == "ruff_lsp",
- },
- ruff = {
- enabled = ruff == "ruff",
- },
- [ruff] = {
keys = {
{
"co",
@@ -65,6 +66,16 @@ return {
},
},
},
+ {
+ "neovim/nvim-lspconfig",
+ opts = function(_, opts)
+ local servers = { "pyright", "basedpyright", "ruff", "ruff_lsp", ruff, lsp }
+ for _, server in ipairs(servers) do
+ opts.servers[server] = opts.servers[server] or {}
+ opts.servers[server].enabled = server == lsp or server == ruff
+ end
+ end,
+ },
{
"nvim-neotest/neotest",
optional = true,
diff --git a/lua/lazyvim/plugins/lsp/init.lua b/lua/lazyvim/plugins/lsp/init.lua
index 0747547f..076344dd 100644
--- a/lua/lazyvim/plugins/lsp/init.lua
+++ b/lua/lazyvim/plugins/lsp/init.lua
@@ -196,6 +196,9 @@ return {
local server_opts = vim.tbl_deep_extend("force", {
capabilities = vim.deepcopy(capabilities),
}, servers[server] or {})
+ if server_opts.enabled == false then
+ return
+ end
if opts.setup[server] then
if opts.setup[server](server, server_opts) then
From 76bc7b402223e011f2bfbd5bc2db98bf6d02262e Mon Sep 17 00:00:00 2001
From: folke
Date: Sun, 21 Jul 2024 10:25:26 +0000
Subject: [PATCH 15/22] chore(build): auto-generate docs
---
doc/LazyVim.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/LazyVim.txt b/doc/LazyVim.txt
index 9a318334..92935de3 100644
--- a/doc/LazyVim.txt
+++ b/doc/LazyVim.txt
@@ -1,4 +1,4 @@
-*LazyVim.txt* For Neovim Last change: 2024 July 20
+*LazyVim.txt* For Neovim Last change: 2024 July 21
==============================================================================
Table of Contents *LazyVim-table-of-contents*
From fca038b433a07e36f063a60804f3eae7a0f268ce Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Sun, 21 Jul 2024 15:53:07 +0200
Subject: [PATCH 16/22] chore(main): release 12.35.0 (#4128)
:robot: I have created a release *beep* *boop*
---
##
[12.35.0](https://github.com/LazyVim/LazyVim/compare/v12.34.0...v12.35.0)
(2024-07-21)
### Features
* **python:** default to new ruff instead of ruff_lsp
([#4126](https://github.com/LazyVim/LazyVim/issues/4126))
([61ce1cf](https://github.com/LazyVim/LazyVim/commit/61ce1cfaaf8365e3b5c12b1509064579ab7d80b5))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
.github/.release-please-manifest.json | 2 +-
CHANGELOG.md | 7 +++++++
lua/lazyvim/config/init.lua | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json
index 67384c64..50859833 100644
--- a/.github/.release-please-manifest.json
+++ b/.github/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "12.34.0"
+ ".": "12.35.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 09dbee59..c0081c2e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [12.35.0](https://github.com/LazyVim/LazyVim/compare/v12.34.0...v12.35.0) (2024-07-21)
+
+
+### Features
+
+* **python:** default to new ruff instead of ruff_lsp ([#4126](https://github.com/LazyVim/LazyVim/issues/4126)) ([61ce1cf](https://github.com/LazyVim/LazyVim/commit/61ce1cfaaf8365e3b5c12b1509064579ab7d80b5))
+
## [12.34.0](https://github.com/LazyVim/LazyVim/compare/v12.33.0...v12.34.0) (2024-07-20)
diff --git a/lua/lazyvim/config/init.lua b/lua/lazyvim/config/init.lua
index d6badcdf..6f2477b2 100644
--- a/lua/lazyvim/config/init.lua
+++ b/lua/lazyvim/config/init.lua
@@ -3,7 +3,7 @@ _G.LazyVim = require("lazyvim.util")
---@class LazyVimConfig: LazyVimOptions
local M = {}
-M.version = "12.34.0" -- x-release-please-version
+M.version = "12.35.0" -- x-release-please-version
LazyVim.config = M
---@class LazyVimOptions
From 6411ab0897f19dad9f902dfee29e101a9a767357 Mon Sep 17 00:00:00 2001
From: Folke Lemaitre
Date: Sun, 21 Jul 2024 17:20:29 +0200
Subject: [PATCH 17/22] fix(grug-far): only prefill files filter when file has
an extension. Closes #4130
---
lua/lazyvim/plugins/editor.lua | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua
index 1f96f8a2..2e6444a1 100644
--- a/lua/lazyvim/plugins/editor.lua
+++ b/lua/lazyvim/plugins/editor.lua
@@ -139,9 +139,11 @@ return {
if is_visual then -- needed to make visual selection work
vim.cmd([[normal! v]])
end
- local grug = require("grug-far");
+ local grug = require("grug-far")
+ local ext = vim.bo.buftype == "" and vim.fn.expand("%:e")
+ local filesFilter = ext and ext ~= "" and "*." .. ext or nil;
(is_visual and grug.with_visual_selection or grug.grug_far)({
- prefills = { filesFilter = "*." .. vim.fn.expand("%:e") },
+ prefills = { filesFilter = filesFilter },
})
end,
mode = { "n", "v" },
From 8db2f3af39454ab51422a83cfc6632d013660691 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Sun, 21 Jul 2024 17:34:32 +0200
Subject: [PATCH 18/22] chore(main): release 12.35.1 (#4131)
:robot: I have created a release *beep* *boop*
---
##
[12.35.1](https://github.com/LazyVim/LazyVim/compare/v12.35.0...v12.35.1)
(2024-07-21)
### Bug Fixes
* **grug-far:** only prefill files filter when file has an extension.
Closes [#4130](https://github.com/LazyVim/LazyVim/issues/4130)
([6411ab0](https://github.com/LazyVim/LazyVim/commit/6411ab0897f19dad9f902dfee29e101a9a767357))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
.github/.release-please-manifest.json | 2 +-
CHANGELOG.md | 7 +++++++
lua/lazyvim/config/init.lua | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json
index 50859833..5f2f4b51 100644
--- a/.github/.release-please-manifest.json
+++ b/.github/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "12.35.0"
+ ".": "12.35.1"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c0081c2e..855e16ba 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [12.35.1](https://github.com/LazyVim/LazyVim/compare/v12.35.0...v12.35.1) (2024-07-21)
+
+
+### Bug Fixes
+
+* **grug-far:** only prefill files filter when file has an extension. Closes [#4130](https://github.com/LazyVim/LazyVim/issues/4130) ([6411ab0](https://github.com/LazyVim/LazyVim/commit/6411ab0897f19dad9f902dfee29e101a9a767357))
+
## [12.35.0](https://github.com/LazyVim/LazyVim/compare/v12.34.0...v12.35.0) (2024-07-21)
diff --git a/lua/lazyvim/config/init.lua b/lua/lazyvim/config/init.lua
index 6f2477b2..eefdd035 100644
--- a/lua/lazyvim/config/init.lua
+++ b/lua/lazyvim/config/init.lua
@@ -3,7 +3,7 @@ _G.LazyVim = require("lazyvim.util")
---@class LazyVimConfig: LazyVimOptions
local M = {}
-M.version = "12.35.0" -- x-release-please-version
+M.version = "12.35.1" -- x-release-please-version
LazyVim.config = M
---@class LazyVimOptions
From 72d0cad3530d877401ad9674f5266c79fbec396b Mon Sep 17 00:00:00 2001
From: Folke Lemaitre
Date: Mon, 22 Jul 2024 08:38:32 +0200
Subject: [PATCH 19/22] feat(grug-far): no longer needed to call visual replace
separately
---
lua/lazyvim/plugins/editor.lua | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/lua/lazyvim/plugins/editor.lua b/lua/lazyvim/plugins/editor.lua
index 2e6444a1..28808394 100644
--- a/lua/lazyvim/plugins/editor.lua
+++ b/lua/lazyvim/plugins/editor.lua
@@ -135,15 +135,12 @@ return {
{
"sr",
function()
- local is_visual = vim.fn.mode():lower():find("v")
- if is_visual then -- needed to make visual selection work
- vim.cmd([[normal! v]])
- end
local grug = require("grug-far")
local ext = vim.bo.buftype == "" and vim.fn.expand("%:e")
- local filesFilter = ext and ext ~= "" and "*." .. ext or nil;
- (is_visual and grug.with_visual_selection or grug.grug_far)({
- prefills = { filesFilter = filesFilter },
+ grug.grug_far({
+ prefills = {
+ filesFilter = ext and ext ~= "" and "*." .. ext or nil,
+ },
})
end,
mode = { "n", "v" },
From 3a87ce4afb3a780be14fe3efcd7924570285538c Mon Sep 17 00:00:00 2001
From: folke
Date: Mon, 22 Jul 2024 06:39:25 +0000
Subject: [PATCH 20/22] chore(build): auto-generate docs
---
doc/LazyVim.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/LazyVim.txt b/doc/LazyVim.txt
index 92935de3..a0b980b7 100644
--- a/doc/LazyVim.txt
+++ b/doc/LazyVim.txt
@@ -1,4 +1,4 @@
-*LazyVim.txt* For Neovim Last change: 2024 July 21
+*LazyVim.txt* For Neovim Last change: 2024 July 22
==============================================================================
Table of Contents *LazyVim-table-of-contents*
From 5626d98d1c6c4713de3a0629050e0a39daa3fba8 Mon Sep 17 00:00:00 2001
From: Folke Lemaitre
Date: Mon, 22 Jul 2024 14:24:32 +0200
Subject: [PATCH 21/22] ci: update
---
.github/workflows/stale.yml | 3 ++-
.github/workflows/update.yml | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index a0c704be..4e0273bc 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -5,6 +5,7 @@ on:
- cron: "30 1 * * *"
jobs:
- ci:
+ stale:
+ if: contains(fromJSON('["folke", "LazyVim"]'), github.repository_owner)
uses: folke/github/.github/workflows/stale.yml@main
secrets: inherit
diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml
index 2177a50b..6784ef9c 100644
--- a/.github/workflows/update.yml
+++ b/.github/workflows/update.yml
@@ -7,6 +7,7 @@ on:
- cron: "0 * * * *"
jobs:
- ci:
+ update:
+ if: contains(fromJSON('["folke", "LazyVim"]'), github.repository_owner)
uses: folke/github/.github/workflows/update.yml@main
secrets: inherit
From 03968eb3f08036d8b7415712caff7e48b63b8ece Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 22 Jul 2024 14:25:04 +0200
Subject: [PATCH 22/22] chore(main): release 12.36.0 (#4135)
:robot: I have created a release *beep* *boop*
---
##
[12.36.0](https://github.com/LazyVim/LazyVim/compare/v12.35.1...v12.36.0)
(2024-07-22)
### Features
* **grug-far:** no longer needed to call visual replace separately
([72d0cad](https://github.com/LazyVim/LazyVim/commit/72d0cad3530d877401ad9674f5266c79fbec396b))
---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
---
.github/.release-please-manifest.json | 2 +-
CHANGELOG.md | 7 +++++++
lua/lazyvim/config/init.lua | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json
index 5f2f4b51..8560146d 100644
--- a/.github/.release-please-manifest.json
+++ b/.github/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "12.35.1"
+ ".": "12.36.0"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 855e16ba..33cbefe9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [12.36.0](https://github.com/LazyVim/LazyVim/compare/v12.35.1...v12.36.0) (2024-07-22)
+
+
+### Features
+
+* **grug-far:** no longer needed to call visual replace separately ([72d0cad](https://github.com/LazyVim/LazyVim/commit/72d0cad3530d877401ad9674f5266c79fbec396b))
+
## [12.35.1](https://github.com/LazyVim/LazyVim/compare/v12.35.0...v12.35.1) (2024-07-21)
diff --git a/lua/lazyvim/config/init.lua b/lua/lazyvim/config/init.lua
index eefdd035..e8d943f3 100644
--- a/lua/lazyvim/config/init.lua
+++ b/lua/lazyvim/config/init.lua
@@ -3,7 +3,7 @@ _G.LazyVim = require("lazyvim.util")
---@class LazyVimConfig: LazyVimOptions
local M = {}
-M.version = "12.35.1" -- x-release-please-version
+M.version = "12.36.0" -- x-release-please-version
LazyVim.config = M
---@class LazyVimOptions