From 9c7f778344be1dbd9384004b9a023568bcaa59a1 Mon Sep 17 00:00:00 2001 From: Christian Nieves Date: Wed, 1 Nov 2023 22:06:18 -0500 Subject: [PATCH] firenvim config --- vim/.vim/lua/plugins/base.lua | 40 ++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/vim/.vim/lua/plugins/base.lua b/vim/.vim/lua/plugins/base.lua index ee0b523..255174b 100644 --- a/vim/.vim/lua/plugins/base.lua +++ b/vim/.vim/lua/plugins/base.lua @@ -9,7 +9,7 @@ return { "andweeb/presence.nvim", cond = not use_google(), config = function() - require("presence").setup() + require("presence").setup({ show_time = false }) end, }, { @@ -102,4 +102,42 @@ return { end, ft = { "markdown" }, }, + { + "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, + }, }