mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 11:38:00 +00:00
[neovim] Show warnings about larger files in a popup
This commit is contained in:
parent
b7ba811d1f
commit
66a3e25a2b
@ -51,7 +51,7 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||
vim.cmd("IBLDisable")
|
||||
vim.cmd("LspStop")
|
||||
if ts_was_active then
|
||||
vim.notify("File larger than 1MB; syntax highlighting and heavy CPU use plugins turned off.")
|
||||
vim.notify("File larger than 1MB; syntax highlighting and heavy CPU use plugins are turned off.")
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
@ -35,5 +35,17 @@ require("noice").setup({
|
||||
},
|
||||
opts = { skip = true },
|
||||
},
|
||||
{
|
||||
view = "popup",
|
||||
filter = {
|
||||
find = "File larger than",
|
||||
},
|
||||
opts = {
|
||||
size = {
|
||||
width = 100,
|
||||
height = 4,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user