nvim: hide numbers in terminals
This commit is contained in:
parent
f4a3b20f91
commit
40d3235275
4
config/neovim/after/ftplugin/term.vim
Normal file
4
config/neovim/after/ftplugin/term.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
setlocal norelativenumber
|
||||
setlocal nonumber
|
||||
|
||||
setlocal scrolloff=0
|
|
@ -31,6 +31,12 @@ local function set_autocmd()
|
|||
set_cursorline("WinLeave", false)
|
||||
set_cursorline("WinEnter", true)
|
||||
set_cursorline("FileType", false, "TelescopePrompt")
|
||||
|
||||
vim.api.nvim_create_autocmd("TermOpen", {
|
||||
callback = function()
|
||||
vim.cmd.set "filetype=term"
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
local function set_filetypes()
|
||||
|
|
Loading…
Reference in a new issue