1
0
Fork 0

fix no numbers for terminals

This commit is contained in:
Felipe 2023-09-20 23:37:40 -03:00
parent 38ef5ea7a7
commit 854f067991
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -2,6 +2,7 @@
local cmd = vim.cmd
local g = vim.g
local opt = vim.opt
local opt_local = vim.opt_local
---- General Config ----
opt.mouse = "a"
@ -30,9 +31,7 @@ g.mapleader = " "
---- Terminal ----
vim.api.nvim_create_autocmd({ "TermOpen" }, {
callback = function()
if vim.l then
vim.l.number = false
end
opt_local.number = false
end,
})
@ -189,17 +188,17 @@ vim.filetype.add({ extension = { kdl = "kdl" } })
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = "markdown",
callback = function()
vim.opt_local.textwidth = 85
vim.opt_local.spell = true
opt_local.textwidth = 85
opt_local.spell = true
end,
})
-- YAML --
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = "yaml",
callback = function()
vim.opt_local.softtabstop = 2
vim.opt_local.expandtab = true
vim.opt_local.foldmethod = "indent"
opt_local.softtabstop = 2
opt_local.expandtab = true
opt_local.foldmethod = "indent"
end,
})