mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-20 07:24:41 +02:00
docs: Small nits and fixes
- Fix unsetting var - Use actual b64 value for 1 - Other small fixes for clarity
This commit is contained in:
@@ -201,7 +201,7 @@ In order to make this work, you need to configure your editor as shown below:
|
||||
In :file:`~/.vimrc` add:
|
||||
.. code-block:: vim
|
||||
|
||||
let &t_ti = &t_ti . "\033]1337;SetUserVar=in_editor=MQo\007"
|
||||
let &t_ti = &t_ti . "\033]1337;SetUserVar=in_editor=MQ==\007"
|
||||
let &t_te = &t_te . "\033]1337;SetUserVar=in_editor\007"
|
||||
|
||||
.. tab:: neovim
|
||||
@@ -214,9 +214,9 @@ In order to make this work, you need to configure your editor as shown below:
|
||||
group = vim.api.nvim_create_augroup("KittySetVarVimEnter", { clear = true }),
|
||||
callback = function()
|
||||
if vim.api.nvim_ui_send then
|
||||
vim.api.nvim_ui_send("\x1b]1337;SetUserVar=in_editor=MQo\007")
|
||||
vim.api.nvim_ui_send("\x1b]1337;SetUserVar=in_editor=MQ==\007")
|
||||
else
|
||||
io.stdout:write("\x1b]1337;SetUserVar=in_editor=MQo\007")
|
||||
io.stdout:write("\x1b]1337;SetUserVar=in_editor=MQ==\007")
|
||||
end
|
||||
end,
|
||||
})
|
||||
@@ -225,7 +225,7 @@ In order to make this work, you need to configure your editor as shown below:
|
||||
group = vim.api.nvim_create_augroup("KittyUnsetVarVimLeave", { clear = true }),
|
||||
callback = function()
|
||||
if vim.api.nvim_ui_send then
|
||||
vim.api.nvim_ui_send("\x1b]1337;SetUserVar=in_editor=MQo\007")
|
||||
vim.api.nvim_ui_send("\x1b]1337;SetUserVar=in_editor\007")
|
||||
else
|
||||
io.stdout:write("\x1b]1337;SetUserVar=in_editor\007")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user