Skip to content

Commit 76905f6

Browse files
author
Rakshit Sinha
committed
Added cmdHeight changes for RecordingEnter/Leave
1 parent c32a329 commit 76905f6

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

init.lua

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you experience any errors while trying to install kickstart, run `:checkhealt
2424
--]]
2525

2626
-- The file rakshit/core/options.lua will be storing all the options that we want to save n our file
27-
require('rakshit.core')
27+
require("rakshit.core")
2828

2929
-- Set to true if you have a Nerd Font installed and selected in the terminal
3030
vim.g.have_nerd_font = true
@@ -35,15 +35,26 @@ vim.g.have_nerd_font = true
3535
-- Highlight when yanking (copying) text
3636
-- Try it with `yap` in normal mode
3737
-- See `:help vim.highlight.on_yank()`
38-
vim.api.nvim_create_autocmd('TextYankPost', {
39-
desc = 'Highlight when yanking (copying) text',
40-
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),
38+
vim.api.nvim_create_autocmd("TextYankPost", {
39+
desc = "Highlight when yanking (copying) text",
40+
group = vim.api.nvim_create_augroup("kickstart-highlight-yank", { clear = true }),
4141
callback = function()
4242
vim.highlight.on_yank()
4343
end,
4444
})
4545

46-
require('rakshit.lazy')
46+
vim.api.nvim_create_autocmd("RecordingEnter", {
47+
callback = function()
48+
vim.opt.cmdheight = 1
49+
end,
50+
})
51+
vim.api.nvim_create_autocmd("RecordingLeave", {
52+
callback = function()
53+
vim.opt.cmdheight = 0
54+
end,
55+
})
56+
57+
require("rakshit.lazy")
4758

4859
-- The line beneath this is called `modeline`. See `:help modeline`
4960
-- vim: ts=2 sts=2 sw=2 et

0 commit comments

Comments
 (0)