summaryrefslogtreecommitdiffstatshomepage
path: root/nvim/.config/nvim/lua/tobyvin/plugins/firenvim.lua
blob: 68423b14e7a0578ae50fe7fc000d3f93f80759b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---@type LazyPlugin
local M = {
	"glacambre/firenvim",
	lazy = false,
	cond = not not vim.g.started_by_firenvim,
	opts = {
		localSettings = {
			[".*"] = {
				selector = [[ textarea:not([readonly]):not([class="handsontableInput"]), div[role="textbox"] ]],
				takeover = "never",
				cmdline = "firenvim",
			},
		},
	},
}

function M:build()
	require("lazy").load({
		plugins = self,
		wait = true,
	})

	vim.fn["firenvim#install"](0)
end

function M:config(opts)
	vim.g.firenvim_config = opts
end

return M