mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 09:24:02 +01:00
update nvim config
This commit is contained in:
parent
5aff46595a
commit
e3c06c3e43
4 changed files with 19 additions and 12 deletions
11
nvim/lua/pluginconf/firenvim.lua
Normal file
11
nvim/lua/pluginconf/firenvim.lua
Normal file
|
@ -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
|
||||
}
|
||||
|
|
@ -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)
|
||||
|
|
|
@ -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')")
|
||||
|
||||
|
|
Loading…
Reference in a new issue