firenvim: fix takeover + don't show tabline
This commit is contained in:
parent
632c75c897
commit
9f96f26128
1 changed files with 22 additions and 4 deletions
26
init.lua
26
init.lua
|
|
@ -69,7 +69,7 @@ lualine.setup({
|
||||||
},
|
},
|
||||||
lualine_z = { 'searchcount', 'progress', 'location' },
|
lualine_z = { 'searchcount', 'progress', 'location' },
|
||||||
},
|
},
|
||||||
tabline = {
|
tabline = (g.started_by_firenvim == true and {}) or {
|
||||||
lualine_a = { 'buffers' },
|
lualine_a = { 'buffers' },
|
||||||
lualine_z = { 'tabs' },
|
lualine_z = { 'tabs' },
|
||||||
},
|
},
|
||||||
|
|
@ -492,6 +492,27 @@ require("nvim-web-devicons").setup()
|
||||||
---- firenvim
|
---- firenvim
|
||||||
if g.started_by_firenvim == true then
|
if g.started_by_firenvim == true then
|
||||||
vim.cmd("packadd firenvim")
|
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({
|
lualine.setup({
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { 'mode' },
|
lualine_a = { 'mode' },
|
||||||
|
|
@ -502,7 +523,4 @@ if g.started_by_firenvim == true then
|
||||||
lualine_z = { 'location' },
|
lualine_z = { 'location' },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
lualine.hide({
|
|
||||||
place = { 'tabline' }
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue