nvim: hide numbers in terminals

This commit is contained in:
Oliver Davies 2023-01-30 21:59:16 +00:00
parent 9317effa05
commit 26757b1bd4
2 changed files with 10 additions and 0 deletions

4
after/ftplugin/term.vim Normal file
View file

@ -0,0 +1,4 @@
setlocal norelativenumber
setlocal nonumber
setlocal scrolloff=0

View file

@ -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()