Closed xfdj closed 2 weeks ago
Please read doc first
require('lspconfig.ui.windows').default_options.border = 'single'
Please read doc first
require('lspconfig.ui.windows').default_options.border = 'single'
I tried. Still not work.
can't reproduce you need use minimal config for test
can't reproduce you need use minimal config for test
Lots of thanks for advice. I read Minimal init.lua
to Reproduce an Issue · folke/lazy.nvim Wiki and learned to test in minimal config. Finally locate the problem.
It turns out that require('lspconfig.ui.windows').default_options.border = 'single'
can work but require('lspconfig/ui/windows').default_options.border = 'single'
cannot. But I'm still very confused about it. I didn't notice it before because I always thought "/" and "." are the same as delimiters in modname. glepnir/nvim-lua-guide-zh gave me that thought. But the result shows that they are different.
The argument to a require call is a module name and not a path to a module file without a file extension. This is why the first one is broken and the second one is ok.
Thanks very much!
Description
I think I have configured the border to "solid" (which I defined in
require("config/options").border
). But after I assign the variable as help page saidrequire("lspconfig/ui/windows").default_options.border = require("config/options").border
.LspInfo
command still give a float window with border 'none'. I don't know where is wrong. Can anyone offer some help. Thanks very much. My neovim version:My package manager: Lazy.nvim nvim-lspconfig commit: 94513a5 My lspconfig configuration file: