diff options
| author | triethyl <triethylammonium@pm.me> | 2025-07-19 10:19:11 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-07-19 10:19:11 -0400 |
| commit | 50018aa0305bd2c5cf91431c128895fc0121d2fa (patch) | |
| tree | caeaa248d797be65322a69afddc29bef31cd5667 /pkgs/custom-neovim/config/lua/autocommands.lua | |
| parent | bf6ac5e7a9a13bcca9d0923e9caa3a6257519ca5 (diff) | |
working on custom neovim
Diffstat (limited to 'pkgs/custom-neovim/config/lua/autocommands.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/autocommands.lua | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/pkgs/custom-neovim/config/lua/autocommands.lua b/pkgs/custom-neovim/config/lua/autocommands.lua index 48a976e..5780482 100644 --- a/pkgs/custom-neovim/config/lua/autocommands.lua +++ b/pkgs/custom-neovim/config/lua/autocommands.lua @@ -1,34 +1,6 @@ -- Autocommands --- Use relative line number in normal mode and absolute in insert mode --- vim.opt.number = true --- local numbertoggle = vim.api.nvim_create_augroup("numbertoggle", {}) --- vim.api.nvim_create_autocmd( --- { "BufEnter", "FocusGained", "InsertLeave", "WinEnter", "CmdlineLeave" }, --- { --- group = numbertoggle, --- callback = function() --- if vim.opt.number and vim.api.nvim_get_mode() ~= "i" then --- vim.opt.relativenumber = true --- end --- end, --- } --- ) - --- vim.api.nvim_create_autocmd( --- { "BufLeave", "FocusLost", "InsertEnter", "WinLeave", "CmdlineEnter" }, --- { --- group = numbertoggle, --- callback = function() --- if vim.opt.number then --- vim.opt.relativenumber = false --- vim.cmd("redraw") --- end --- end, --- } --- ) - - -- start terminal in insert mode +-- start terminal in insert mode vim.api.nvim_create_autocmd("TermOpen", { callback = function() vim.cmd "startinsert!" |
