Refresh generated neovim config
This commit is contained in:
@ -12,7 +12,7 @@ function M.noautocmd(fn)
|
||||
end
|
||||
|
||||
function M.is_win()
|
||||
return vim.uv.os_uname().sysname:find("Windows") ~= nil
|
||||
return uv.os_uname().sysname:find("Windows") ~= nil
|
||||
end
|
||||
|
||||
---@param opts? {msg?: string}
|
||||
@ -43,9 +43,9 @@ function M.notify(msg, opts)
|
||||
replace = opts.id and notif_ids[opts.id] or nil,
|
||||
title = opts.title or "Trouble",
|
||||
on_open = function(win)
|
||||
vim.wo.conceallevel = 3
|
||||
vim.wo.concealcursor = "n"
|
||||
vim.wo.spell = false
|
||||
vim.wo[win].conceallevel = 3
|
||||
vim.wo[win].concealcursor = "n"
|
||||
vim.wo[win].spell = false
|
||||
vim.treesitter.start(vim.api.nvim_win_get_buf(win), "markdown")
|
||||
end,
|
||||
})
|
||||
@ -269,6 +269,9 @@ function M.get_lines(opts)
|
||||
|
||||
for row, line in M.lines(data) do
|
||||
if not opts.rows or ret[row] then
|
||||
if line:sub(-1) == "\r" then
|
||||
line = line:sub(1, -2)
|
||||
end
|
||||
todo = todo - 1
|
||||
ret[row] = line
|
||||
if todo == 0 then
|
||||
|
||||
Reference in New Issue
Block a user