diff --git a/nvim/lua/pluginconf/firenvim.lua b/nvim/lua/pluginconf/firenvim.lua new file mode 100644 index 0000000..5e5fb09 --- /dev/null +++ b/nvim/lua/pluginconf/firenvim.lua @@ -0,0 +1,11 @@ +local blacklistedSites = {".*twitch\\.tv.*", ".*twitter\\.com.*"} + +local localSettings = {} +for _, site in pairs(blacklistedSites) do + localSettings[site] = { takeover = "never" } +end + +vim.g.firenvim_config = { + localSettings = localSettings +} + diff --git a/nvim/lua/statusline.lua b/nvim/lua/pluginconf/galaxyline.lua similarity index 100% rename from nvim/lua/statusline.lua rename to nvim/lua/pluginconf/galaxyline.lua diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 5b5612a..2ef60e9 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -14,7 +14,13 @@ return require("packer").startup(function(use) use "jiangmiao/auto-pairs" use "tpope/vim-endwise" use "vimwiki/vimwiki" - use {"glacambre/firenvim", run = function() vim.fn["firenvim#install"](0) end} + use { + "glacambre/firenvim", + run = function() vim.fn["firenvim#install"](0) end, + config = function() + require("pluginconf.firenvim") + end + } use "jreybert/vimagit" use "airblade/vim-gitgutter" use "dag/vim-fish" @@ -25,7 +31,7 @@ return require("packer").startup(function(use) "glepnir/galaxyline.nvim", branch = "main", config = function() - require("statusline") + require("pluginconf.galaxyline") end } end) diff --git a/nvim/lua/settings.lua b/nvim/lua/settings.lua index d51df31..7b701ce 100644 --- a/nvim/lua/settings.lua +++ b/nvim/lua/settings.lua @@ -19,16 +19,6 @@ g.NERDTreeShowHidden = true cmd("colorscheme dracula") --- firenvim config -local localSettings = {} -localSettings[".*twitch\\.tv.*"] = { - takeover = "never" -} - -g.firenvim_config = { - localSettings = localSettings -} - -- Highlight the symbol and its references when holding the cursor. cmd("autocmd CursorHold * silent call CocActionAsync('highlight')")