mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-03 14:04:26 +02:00
add: update config
This commit is contained in:
parent
41061a53f2
commit
99e49e4087
4 changed files with 110 additions and 2 deletions
|
@ -14,7 +14,13 @@ end
|
|||
|
||||
local term_program = vim.fn.getenv("TERM_PROGRAM")
|
||||
if term_program == "WezTerm" then
|
||||
vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"')
|
||||
-- vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"')
|
||||
-- create autocmd on insertEnter
|
||||
vim.api.nvim_create_autocmd("BufRead", {
|
||||
group = vim.api.nvim_create_augroup("BufRead", { clear = true }),
|
||||
command = 'silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"',
|
||||
desc = "Set Folder Name",
|
||||
})
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd("ExitPre", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue