diff options
author | Squibid <me@zacharyscheiman.com> | 2023-11-26 14:20:54 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-11-26 14:20:54 -0500 |
commit | b3110c9a9bae6d137e535ab9070b9b5a06406d19 (patch) | |
tree | 4cd7973b28cee72568e9969b509764ffcd104eb9 /lua | |
parent | f35b13d669867209427449840ff0930a732591dc (diff) | |
download | nvim-b3110c9a9bae6d137e535ab9070b9b5a06406d19.tar.gz nvim-b3110c9a9bae6d137e535ab9070b9b5a06406d19.tar.bz2 nvim-b3110c9a9bae6d137e535ab9070b9b5a06406d19.zip |
only show cursorline on current window
Diffstat (limited to 'lua')
-rw-r--r-- | lua/conf/auto.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lua/conf/auto.lua b/lua/conf/auto.lua index 8c990d6..0ab1a86 100644 --- a/lua/conf/auto.lua +++ b/lua/conf/auto.lua @@ -65,17 +65,19 @@ auto('BufWritePre', { }) auto('WinLeave', { - pattern = '!Alpha', desc = 'Unset cursorline', group = toggles, callback = function() vim.opt.cursorline = false end }) auto('WinEnter', { - pattern = '!Alpha', desc = 'Set cursorline', group = toggles, - callback = function() vim.opt.cursorline = true end + callback = function() + if vim.bo.filetype ~= 'alpha' then + vim.opt.cursorline = true + end + end }) auto('ColorScheme', { |