From 391b43f9f9a7299ce09f0777556cffee0091ebd4 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Fri, 24 Feb 2023 19:41:43 +0100 Subject: [PATCH] Added missing param --- dotfiles/neovim/lua/my/keymaps.lua | 1 + dotfiles/neovim/lua/my/plugins/firenvim.lua | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/dotfiles/neovim/lua/my/keymaps.lua b/dotfiles/neovim/lua/my/keymaps.lua index 3ee5b87..10cb79d 100644 --- a/dotfiles/neovim/lua/my/keymaps.lua +++ b/dotfiles/neovim/lua/my/keymaps.lua @@ -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", diff --git a/dotfiles/neovim/lua/my/plugins/firenvim.lua b/dotfiles/neovim/lua/my/plugins/firenvim.lua index d8d7405..2857559 100644 --- a/dotfiles/neovim/lua/my/plugins/firenvim.lua +++ b/dotfiles/neovim/lua/my/plugins/firenvim.lua @@ -16,16 +16,20 @@ function M.config() }, } - K.nmap("", function() - vim.opt.lines = 100 + -- {{{ Ctrl-z to expand window + K.nmap("", 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