Added missing param
This commit is contained in:
parent
a1b3cf01ee
commit
391b43f9f9
|
@ -86,6 +86,7 @@ function M.setup()
|
||||||
-- {{{ Allow quiting basic buffers with "q"
|
-- {{{ Allow quiting basic buffers with "q"
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = { "help" },
|
pattern = { "help" },
|
||||||
|
group = vim.api.nvim_create_augroup("BasicBufferQuitting", {}),
|
||||||
callback = function(event)
|
callback = function(event)
|
||||||
vim.keymap.set(
|
vim.keymap.set(
|
||||||
"n",
|
"n",
|
||||||
|
|
|
@ -16,16 +16,20 @@ function M.config()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
K.nmap("<C-e>", function()
|
-- {{{ Ctrl-z to expand window
|
||||||
vim.opt.lines = 100
|
K.nmap("<C-z>", function()
|
||||||
|
vim.opt.lines = 25
|
||||||
end, "Expand the neovim window!")
|
end, "Expand the neovim window!")
|
||||||
|
-- }}}
|
||||||
|
-- {{{ Filetype detection
|
||||||
vim.api.nvim_create_autocmd("BufEnter", {
|
vim.api.nvim_create_autocmd("BufEnter", {
|
||||||
pattern = { "firenvim_localhost_notebooks*.txt" },
|
pattern = { "firenvim_localhost_notebooks*.txt" },
|
||||||
|
group = vim.api.nvim_create_augroup("JupyterMarkdownFiletype", {}),
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.opt.filetype = "markdown"
|
vim.opt.filetype = "markdown"
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- Disable status line
|
-- Disable status line
|
||||||
vim.opt.laststatus = 0
|
vim.opt.laststatus = 0
|
||||||
|
|
Loading…
Reference in a new issue