hide statusline in NvimTree and terminal buffers
This commit is contained in:
parent
74a97956bb
commit
a9816eed42
11
init.lua
11
init.lua
@ -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()
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user