-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added w_last_used to struct window_S
- Loading branch information
Iraq Jaber
authored and
Iraq Jaber
committed
May 14, 2024
1 parent
2f47929
commit e915146
Showing
5 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
vim.keymap.set("n", "<C-h>", function() | ||
local bufnr = vim.api.nvim_get_current_buf() | ||
local bufInfo = vim.fn.getbufinfo(bufnr) | ||
local winid = bufInfo[1].windows[1] | ||
local wininfo = vim.fn.getwininfo(winid) | ||
print(wininfo[1].lastused) | ||
end, | ||
{ silent = true, noremap = true }) |