update plugs save 20ms on load wooooooo

This commit is contained in:
Christian Nieves
2024-01-16 22:01:10 -06:00
parent c19d01dc21
commit a37f9dab1c
7 changed files with 165 additions and 141 deletions

View File

@ -0,0 +1,38 @@
return {
"glacambre/firenvim",
-- Lazy load firenvim
-- Explanation: https://github.com/folke/lazy.nvim/discussions/463#discussioncomment-4819297
config = function()
vim.g.firenvim_config = {
localSettings = {
[ [[.*]] ] = {
cmdline = "firenvim",
priority = 0,
selector = 'textarea:not([readonly]):not([class="handsontableInput"]), div[role="textbox"]',
takeover = "always",
},
[ [[.*notion\.so.*]] ] = {
priority = 9,
takeover = "never",
},
[ [[.*docs\.google\.com.*]] ] = {
priority = 9,
takeover = "never",
},
[ [[google\.com.*]] ] = {
priority = 9,
takeover = "never",
},
[ [[twitch\.tv.*]] ] = {
priority = 9,
takeover = "never",
},
},
}
end,
lazy = not vim.g.started_by_firenvim,
build = function()
vim.fn["firenvim#install"](0)
end,
}