1
0
Fork 0

firenvim: fix takeover + don't show tabline

This commit is contained in:
Felipe 2023-06-28 02:02:30 -04:00
parent 632c75c897
commit 9f96f26128
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -69,7 +69,7 @@ lualine.setup({
},
lualine_z = { 'searchcount', 'progress', 'location' },
},
tabline = {
tabline = (g.started_by_firenvim == true and {}) or {
lualine_a = { 'buffers' },
lualine_z = { 'tabs' },
},
@ -492,6 +492,27 @@ require("nvim-web-devicons").setup()
---- firenvim
if g.started_by_firenvim == true then
vim.cmd("packadd firenvim")
g.firenvim_config = {
globalSettings = {
alt = 'all',
},
localSettings = {
['.*'] = {
selector = 'textarea:not([readonly]):not([class="handsontableInput"]), div[role="textbox"]',
takeover = 'never',
},
['https://github\\.com.*'] = {
priority = 1,
takeover = 'always',
}
}
}
vim.api.nvim_create_autocmd({ 'BufEnter' }, {
pattern = "github.com_*.txt",
callback = function()
vim.cmd("set filetype=markdown")
end
})
lualine.setup({
sections = {
lualine_a = { 'mode' },
@ -502,7 +523,4 @@ if g.started_by_firenvim == true then
lualine_z = { 'location' },
},
})
lualine.hide({
place = { 'tabline' }
})
end