This file contains hidden or 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 probably isn't the most efficient way of doing this | |
| -- but i'm quite happy with it so i want to share it. | |
| -- function to check whether current buffer is modified | |
| local function modcheck() | |
| local current_buf = vim.api.nvim_get_current_buf() | |
| if vim.api.nvim_buf_get_option(current_buf, 'modified') then | |
| return true | |
| else |
This file contains hidden or 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
| #!/bin/bash | |
| ## about | |
| # this does two things 1) provides a visual indicator when moving between panes | |
| # 2) cleverly cycles between the previous pane on all windows across the session. | |
| # NOTE this script does echo out every single tmux focus switch to a file in /tmp/ | |
| # so unless you turn your machine off every night you'll want to find some way of | |
| # dealing with that. |