1
Fork 0

Added missing param

This commit is contained in:
Matei Adriel 2023-02-24 19:41:43 +01:00
parent a1b3cf01ee
commit 391b43f9f9
No known key found for this signature in database
2 changed files with 8 additions and 3 deletions

View file

@ -86,6 +86,7 @@ function M.setup()
-- {{{ Allow quiting basic buffers with "q"
vim.api.nvim_create_autocmd("FileType", {
pattern = { "help" },
group = vim.api.nvim_create_augroup("BasicBufferQuitting", {}),
callback = function(event)
vim.keymap.set(
"n",

View file

@ -16,16 +16,20 @@ function M.config()
},
}
K.nmap("<C-e>", function()
vim.opt.lines = 100
-- {{{ Ctrl-z to expand window
K.nmap("<C-z>", function()
vim.opt.lines = 25
end, "Expand the neovim window!")
-- }}}
-- {{{ Filetype detection
vim.api.nvim_create_autocmd("BufEnter", {
pattern = { "firenvim_localhost_notebooks*.txt" },
group = vim.api.nvim_create_augroup("JupyterMarkdownFiletype", {}),
callback = function()
vim.opt.filetype = "markdown"
end,
})
-- }}}
-- Disable status line
vim.opt.laststatus = 0