Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
5559228300 | |||
3dcc074693 | |||
58c3842faa | |||
89db0157b1 | |||
7443effe26 |
13
CHANGELOG.md
13
CHANGELOG.md
@ -1,5 +1,18 @@
|
||||
# Changelog
|
||||
|
||||
## [3.5.0](https://github.com/LazyVim/LazyVim/compare/v3.4.0...v3.5.0) (2023-05-23)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **mini.comment:** added ts-context-commentstring back and made it work with mini.comment ([89db015](https://github.com/LazyVim/LazyVim/commit/89db0157b1621deffc83a4e00cb2be13e2827a5d))
|
||||
* **test:** added easy way to configure adapters ([7443eff](https://github.com/LazyVim/LazyVim/commit/7443effe269ad3b2d491f43439b48f1d072c9210))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **vscode:** support older Neovim versions. Fixes [#798](https://github.com/LazyVim/LazyVim/issues/798) ([3dcc074](https://github.com/LazyVim/LazyVim/commit/3dcc074693c3560982d6e500aa073140a9c5c0ed))
|
||||
|
||||
## [3.4.0](https://github.com/LazyVim/LazyVim/compare/v3.3.0...v3.4.0) (2023-05-22)
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
*LazyVim.txt* For Neovim >= 0.8.0 Last change: 2023 May 22
|
||||
*LazyVim.txt* For Neovim >= 0.8.0 Last change: 2023 May 23
|
||||
|
||||
==============================================================================
|
||||
Table of Contents *LazyVim-table-of-contents*
|
||||
|
@ -131,9 +131,18 @@ return {
|
||||
},
|
||||
|
||||
-- comments
|
||||
{ "JoosepAlviste/nvim-ts-context-commentstring", lazy = true },
|
||||
{
|
||||
"echasnovski/mini.comment",
|
||||
event = "VeryLazy",
|
||||
config = function(_, opts)
|
||||
local c = require("mini.comment")
|
||||
c.setup(opts)
|
||||
local H = require("lazyvim.util").get_upvalue(c.setup, "H")
|
||||
H.get_commentstring = function()
|
||||
return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring
|
||||
end
|
||||
end,
|
||||
opts = {},
|
||||
},
|
||||
|
||||
|
@ -10,6 +10,12 @@ return {
|
||||
},
|
||||
{
|
||||
"nvim-neotest/neotest",
|
||||
opts = {
|
||||
adapter_config = {
|
||||
-- ["adapter_name"] = {} -- set adapter config here
|
||||
},
|
||||
adapters = {},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local neotest_ns = vim.api.nvim_create_namespace("neotest")
|
||||
vim.diagnostic.config({
|
||||
@ -22,6 +28,15 @@ return {
|
||||
},
|
||||
}, neotest_ns)
|
||||
|
||||
if opts.adapter_config then
|
||||
for a, adapter in ipairs(opts.adapters or {}) do
|
||||
local name = adapter.name
|
||||
if opts.adapter_config[name] then
|
||||
opts.adapters[a] = adapter(opts.adapter_config[name])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
require("neotest").setup(opts)
|
||||
end,
|
||||
-- stylua: ignore
|
||||
|
@ -25,7 +25,7 @@ local update_state = Plugin.update_state
|
||||
Plugin.update_state = function()
|
||||
-- Config.spec.disabled = {}
|
||||
for name, plugin in pairs(Config.plugins) do
|
||||
if not vim.list_contains(enabled, plugin.name) then
|
||||
if not vim.tbl_contains(enabled, plugin.name) then
|
||||
Config.plugins[name] = nil
|
||||
end
|
||||
end
|
||||
|
@ -27,6 +27,20 @@ function M.fg(name)
|
||||
return fg and { fg = string.format("#%06x", fg) }
|
||||
end
|
||||
|
||||
function M.get_upvalue(func, name)
|
||||
local i = 1
|
||||
while true do
|
||||
local n, v = debug.getupvalue(func, i)
|
||||
if not n then
|
||||
break
|
||||
end
|
||||
if n == name then
|
||||
return v
|
||||
end
|
||||
i = i + 1
|
||||
end
|
||||
end
|
||||
|
||||
---@param fn fun()
|
||||
function M.on_very_lazy(fn)
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
|
Reference in New Issue
Block a user