summaryrefslogtreecommitdiff
path: root/lua/config/autocmds.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/autocmds.lua')
-rw-r--r--lua/config/autocmds.lua20
1 files changed, 0 insertions, 20 deletions
diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua
index f6033d6..1a4970b 100644
--- a/lua/config/autocmds.lua
+++ b/lua/config/autocmds.lua
@@ -33,14 +33,6 @@ autocmd("TermOpen", {
vim.keymap.set("t", "<Esc>", "<C-\\><C-n>", { noremap = true })
end,
})
--- -- close automatically when shell process exits
--- -- TODO: does not work
--- autocmd("TermClose", {
--- callback = function()
--- vim.cmd("bdelete")
--- end,
--- })
-vim.keymap.set("n", "!", "<cmd>sp<CR><cmd>term<CR>", { desc = "Open terminal" })
-- [[ preserve last position ]]
autocmd("BufReadPost", {
@@ -72,17 +64,5 @@ autocmd(
}
)
--- autocmd({ "BufNewFile", "BufRead" }, {
--- pattern = "*",
--- callback = function()
--- local output = vim.fn.system("git rev-parse --is-inside-work-tree")
--- if output == "true\n" then
--- vim.opt.signcolumn = "yes"
--- else
--- vim.opt.signcolumn = "no"
--- end
--- end,
--- })
-
-- Automatically resize panes
autocmd("VimResized", { pattern = "*", command = "wincmd =" })