1
Fork 0
satellite/dotfiles/neovim/lua/my/plugins/firenvim.lua

43 lines
972 B
Lua
Raw Normal View History

2023-01-10 02:38:06 +01:00
local env = require("my.helpers.env")
local K = require("my.keymaps")
2023-01-10 02:38:06 +01:00
local M = {
"glacambre/firenvim", -- vim inside chrome
lazy = false,
cond = env.firenvim.active(),
}
function M.config()
2023-01-10 02:38:06 +01:00
vim.g.firenvim_config = {
localSettings = {
[".*"] = {
filename = "/tmp/firenvim_{hostname}_{pathname}_{selector}_{timestamp}.{extension}",
2023-01-10 02:38:06 +01:00
},
},
}
2023-02-24 19:41:43 +01:00
-- {{{ Ctrl-z to expand window
K.nmap("<C-z>", function()
vim.opt.lines = 25
end, "Expand the neovim window!")
2023-02-24 19:41:43 +01:00
-- }}}
-- {{{ Filetype detection
vim.api.nvim_create_autocmd("BufEnter", {
pattern = { "firenvim_localhost_notebooks*.txt" },
2023-02-24 19:41:43 +01:00
group = vim.api.nvim_create_augroup("JupyterMarkdownFiletype", {}),
callback = function()
vim.opt.filetype = "markdown"
end,
})
2023-02-24 19:41:43 +01:00
-- }}}
2023-02-26 00:42:40 +01:00
-- {{{ Disable status line
vim.opt.laststatus = 0
2023-02-26 00:42:40 +01:00
-- }}}
-- {{{ Enable wrapping
vim.opt.wrap = true
require("my.helpers.wrapMovement").setup()
-- }}}
2023-01-10 02:38:06 +01:00
end
return M