NvChad / starter

Starter config for NvChad
The Unlicense
137 stars 482 forks source link

Windows overlaying each other #40

Closed qbnil closed 3 months ago

qbnil commented 3 months ago

Shot-2024-08-24-220505 Is there any way i can position these windows normally and also get rid of the border in one of the windows, thx...

siduck commented 3 months ago

turn off the signature.. how small is your screen? it should usually show under the cursor if there's space

https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua#L78

qbnil commented 3 months ago

I got a 15.6 laptop. I got what you mean. How do i get rid of the ligature window's border then

qbnil commented 3 months ago

image the problem is that the ligature window still apears when there is a " inside (). It'd be awesome if i could get rid of that feature and only leave the window when the first curly is being types -> ( ....

qbnil commented 3 months ago

image this way before the " it works perfectly

siduck commented 3 months ago

hmmm not really, cuz typing " wont get u cmp completions, so signature is visible

siduck commented 3 months ago

the signature module checks if current/previous char have triggered chars from lsp

https://github.com/NvChad/ui/blob/v2.5/lua/nvchad/lsp/signature.lua#L18

qbnil commented 3 months ago

hmmm not really, cuz typing " wont get u cmp completions, so signature is visible image the second i type " the completion menu appears and overlays the signature window

qbnil commented 3 months ago

i also noticed that this happens when there is no space for either cmp window down below or above like here: image

qbnil commented 3 months ago

In the middle of the screen everything is perfect: image

siduck commented 3 months ago

In the middle of the screen everything is perfect: image

yes, if they dont get enough space then obviously they will be above cursor and cmp has more priority

qbnil commented 3 months ago

i'm really struggling bruhh.. i can't disable lsp signature border... and cmp documentation border... config = function(_, opts) local cmp = require "cmp"

  local myopts = {
    -- sources = {
    --   { name = "nvim_lsp_signature_help" },
    -- },
    window = {
      documentation = {
        border = "none",
      },
    },
    mapping = {
      ["<A-a>"] = cmp.mapping.confirm({ select = false }),
      ["<A-e>"] = cmp.mapping.abort(),
      ["<C-b>"] = cmp.mapping.scroll_docs(-4),
      ["<C-f>"] = cmp.mapping.scroll_docs(4),
    },
  }

  opts = vim.tbl_deep_extend("force", myopts, opts)
  require("cmp").setup(opts)

i tried to override like that but that didn't seem to work

qbnil commented 3 months ago

nevermind, fixed this.. is there any way to delete the default mapping, because be bugging sometimes because by default it's mapped to confirm selection

qbnil commented 3 months ago

just set it to nil and it worked..

siduck commented 3 months ago

just set it to nil and it worked..

yes thats the way, in neovim, tables with keys/values must need their keys = nil for deleting them