hide statusline in NvimTree and terminal buffers

This commit is contained in:
siduck76 2021-06-18 08:40:01 +05:30
parent 74a97956bb
commit a9816eed42
2 changed files with 9 additions and 3 deletions

View File

@ -50,11 +50,16 @@ require("nvim-autopairs").setup()
require("lspkind").init()
-- hide line numbers in terminal windows
vim.api.nvim_exec([[
vim.api.nvim_exec(
[[
au BufEnter term://* setlocal nonumber
]], false)
au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
au BufEnter term://* set laststatus=0
]],
false
)
require "zenmode"
require "whichkey"
require "dashboard"
require('nvim_comment').setup()
require("nvim_comment").setup()

View File

@ -7,6 +7,7 @@ local function opt(scope, key, value)
end
end
opt("o", "ruler", false)
opt("o", "hidden", true)
opt("o", "ignorecase", true)
opt("o", "splitbelow", true)