Improved multiple config files
This commit is contained in:
@ -2,13 +2,18 @@ local on = vim.api.nvim_create_autocmd
|
||||
|
||||
on("VimEnter", {
|
||||
callback = function()
|
||||
require("nvim-tree.api").tree.toggle({ focus = false })
|
||||
local files = require("nvim-tree.api")
|
||||
local width = vim.go.columns
|
||||
|
||||
if width > 120 then
|
||||
files.tree.toggle({ focus = false })
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
on({ "TermOpen", "TermEnter" }, {
|
||||
callback = function()
|
||||
vim.wo.signcolumn = "no"
|
||||
vim.opt_local.signcolumn = "no"
|
||||
end,
|
||||
})
|
||||
|
||||
@ -19,3 +24,5 @@ on({ "BufNewFile", "BufRead" }, {
|
||||
vim.opt_local.signcolumn = "no"
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user