diff --git a/init.lua b/init.lua index f0c1d9d..3bbe5eb 100644 --- a/init.lua +++ b/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() diff --git a/lua/misc-utils.lua b/lua/misc-utils.lua index 889f48d..a5f7d6f 100644 --- a/lua/misc-utils.lua +++ b/lua/misc-utils.lua @@ -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)