♻️ refactor(nvim): use Lazyvim notify api instead of neovim vim.notify
This commit is contained in:
parent
19782b342b
commit
eca8325ec5
3 changed files with 4 additions and 4 deletions
|
@ -124,7 +124,7 @@ local linters = function()
|
|||
local buf_linters = {}
|
||||
|
||||
if not linters_attached then
|
||||
vim.notify("No linters attached", vim.log.levels.WARN, { title = "Linter" })
|
||||
LazyVim.warn("No linters attached", { title = "Linter" })
|
||||
return
|
||||
end
|
||||
|
||||
|
@ -135,7 +135,7 @@ local linters = function()
|
|||
local unique_client_names = table.concat(buf_linters, ", ")
|
||||
local linters = string.format("%s", unique_client_names)
|
||||
|
||||
vim.notify(linters, vim.log.levels.INFO, { title = "Linter" })
|
||||
LazyVim.notify(linters, { title = "Linter" })
|
||||
end
|
||||
map("n", "<leader>ciL", linters, { desc = "Lint" })
|
||||
map("n", "<leader>cir", "<cmd>LazyRoot<cr>", { desc = "Root" })
|
||||
|
|
|
@ -37,5 +37,5 @@ if vim.fn.has("nvim-0.10") == 1 then
|
|||
},
|
||||
}
|
||||
else
|
||||
vim.notify("Treesitter Playground only works with the nightly build")
|
||||
LazyVim.notify("Treesitter Playground only works with the nightly build", { title = "Treesitter Playground" })
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ return {
|
|||
"<leader>qS",
|
||||
function()
|
||||
p.save()
|
||||
vim.notify("Session Saved", vim.log.levels.INFO, { title = "Persistence" })
|
||||
LazyVim.notify("Session Saved", { title = "Persistence" })
|
||||
end,
|
||||
desc = "Save Session",
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue