fix autocmd breaking term plugins
This commit is contained in:
parent
9ca0af1a24
commit
c1e372e2cd
@ -1,3 +1,4 @@
|
|||||||
|
local settings=require("core.utils").load_config().options.nvChad
|
||||||
-- uncomment this if you want to open nvim with a dir
|
-- uncomment this if you want to open nvim with a dir
|
||||||
-- vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]]
|
-- vim.cmd [[ autocmd BufEnter * if &buftype != "terminal" | lcd %:p:h | endif ]]
|
||||||
|
|
||||||
@ -6,7 +7,9 @@
|
|||||||
-- vim.cmd[[ au InsertLeave * set relativenumber ]]
|
-- vim.cmd[[ au InsertLeave * set relativenumber ]]
|
||||||
|
|
||||||
-- Don't show any numbers inside terminals
|
-- Don't show any numbers inside terminals
|
||||||
vim.cmd [[ au TermOpen term://* setlocal nonumber norelativenumber | setfiletype terminal ]]
|
if not settings.terminal_numbers then
|
||||||
|
vim.cmd [[ au TermOpen term://* setlocal nonumber norelativenumber | setfiletype terminal ]]
|
||||||
|
end
|
||||||
|
|
||||||
-- Don't show status line on certain windows
|
-- Don't show status line on certain windows
|
||||||
vim.cmd [[ autocmd BufEnter,BufRead,BufWinEnter,FileType,WinEnter * lua require("core.utils").hide_statusline() ]]
|
vim.cmd [[ autocmd BufEnter,BufRead,BufWinEnter,FileType,WinEnter * lua require("core.utils").hide_statusline() ]]
|
||||||
|
@ -34,6 +34,7 @@ M.options = {
|
|||||||
copy_del = true, -- copy deleted text ( dd key ), visual and normal mode
|
copy_del = true, -- copy deleted text ( dd key ), visual and normal mode
|
||||||
insert_nav = true, -- navigation in insertmode
|
insert_nav = true, -- navigation in insertmode
|
||||||
window_nav = true,
|
window_nav = true,
|
||||||
|
terminal_numbers = false,
|
||||||
|
|
||||||
-- updater
|
-- updater
|
||||||
update_url = "https://github.com/NvChad/NvChad",
|
update_url = "https://github.com/NvChad/NvChad",
|
||||||
|
Loading…
Reference in New Issue
Block a user