Improved multiple config files

This commit is contained in:
2023-08-23 22:59:04 +02:00
parent 3d3380b6b6
commit 99325b98cf
6 changed files with 36 additions and 1031 deletions

View File

@ -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,
})