From aabf8ca22556c64fba1f117f773c21cb7528f4c5 Mon Sep 17 00:00:00 2001 From: siduck Date: Wed, 15 Jun 2022 07:26:10 +0530 Subject: [PATCH] make lspsignature window float above the cursor to avoid cmp overlapping special thanks to https://www.reddit.com/r/neovim/comments/vbsryc/comment/icehk2c/?utm_source=share&utm_medium=web2x&context=3 --- lua/core/init.lua | 6 +++--- lua/ui/lsp.lua | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/core/init.lua b/lua/core/init.lua index 3d6df8c..41efe52 100644 --- a/lua/core/init.lua +++ b/lua/core/init.lua @@ -18,7 +18,7 @@ autocmd("BufUnload", { }) -- Don't auto commenting new lines -autocmd('BufEnter', { - pattern = '*', - command = 'set fo-=c fo-=r fo-=o' +autocmd("BufEnter", { + pattern = "*", + command = "set fo-=c fo-=r fo-=o", }) diff --git a/lua/ui/lsp.lua b/lua/ui/lsp.lua index 1cbde80..17e874b 100644 --- a/lua/ui/lsp.lua +++ b/lua/ui/lsp.lua @@ -51,4 +51,7 @@ vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.s silent = true, focusable = false, close_events = { "InsertCharPre", "CursorMoved" }, + anchor = "SW", + relative = "cursor", + row = -1, })