We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d17b11 commit 26500f6Copy full SHA for 26500f6
1 file changed
lua/lean/abbreviations.lua
@@ -185,8 +185,8 @@ local function insert_char_pre()
185
end
186
187
local function cmdwin_enter()
188
- local came_from = vim.fn.winbufnr(vim.fn.win_getid(vim.fn.winnr '#'))
189
- if not vim.bo[came_from].filetype:match '^lean*' then
+ local came_from = vim.api.nvim_win_get_buf(vim.fn.win_getid(vim.fn.winnr '#'))
+ if vim.bo[came_from].filetype ~= 'lean' then
190
return
191
192
0 commit comments