fix no numbers for terminals
This commit is contained in:
parent
38ef5ea7a7
commit
854f067991
1 changed files with 7 additions and 8 deletions
15
init.lua
15
init.lua
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue