From fef35eea04207478660ba37482cbaccf0bd2df25 Mon Sep 17 00:00:00 2001 From: Hasan Mahmud <38243998+hasansujon786@users.noreply.github.com> Date: Tue, 21 Jan 2025 23:42:10 +0600 Subject: [PATCH] feat: smear to noice.nvim command_palette --- lua/smear_cursor/screen.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/smear_cursor/screen.lua b/lua/smear_cursor/screen.lua index e4da494..aed33e3 100644 --- a/lua/smear_cursor/screen.lua +++ b/lua/smear_cursor/screen.lua @@ -17,6 +17,13 @@ M.get_screen_cursor_position = function() end M.get_screen_cmd_cursor_position = function() + if vim.g.ui_cmdline_pos ~= nil then + local row = vim.g.ui_cmdline_pos[1] + local col = vim.g.ui_cmdline_pos[2] + vim.fn.getcmdpos() + 1 + + return row, col + end + local row = vim.o.lines - vim.opt.cmdheight._value + 1 local col = vim.fn.getcmdpos() + 1