diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-19 19:29:42 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-05-19 19:32:44 +0200 |
| commit | 19e20f1e23c5ba926a76957a1d20efcc83ff3fd2 (patch) | |
| tree | bd60a2ca61d0e35bd814607e1b442fe3feb49595 /plugin | |
| parent | 8d05be0135a535edad659a6bf814794e8066ab95 (diff) | |
| download | nvim-config-19e20f1e23c5ba926a76957a1d20efcc83ff3fd2.tar.gz nvim-config-19e20f1e23c5ba926a76957a1d20efcc83ff3fd2.zip | |
fix: root Claude Code lua_ls at ~/.config/nvim
- lua-lsp rooted lua_ls at $HOME: ignored .luarc.json, flooded
'Undefined global vim', no IntelliSense on the nvim config.
- New local marketplace/plugin lua-lsp-local@local-lsp: .lsp.json sets
workspaceFolder=~/.config/nvim, Neovim runtime as workspace.library,
diagnostics.libraryFiles=Disable.
- Disable official lua-lsp (enabledPlugins) so one server owns .lua.
- Verified by probe: rootUri now file:///home/tvanbesi/.config/nvim,
flood gone.
- Annotate the intentional open_floating_preview monkey-patch
(clears the now-correct duplicate-set-field).
- README: validate/add/install/disable repro + plugin-update workflow.
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/50-lsp.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/50-lsp.lua b/plugin/50-lsp.lua index 7f62dae..3b3fd4f 100644 --- a/plugin/50-lsp.lua +++ b/plugin/50-lsp.lua @@ -27,6 +27,7 @@ vim.api.nvim_create_user_command("LspInspect", inspect_lsp, { desc = "Inspect LS -- The float is still clamped to the available screen space, so a signature -- longer than the popup can fit will still wrap (just less often). local open_floating_preview = vim.lsp.util.open_floating_preview +---@diagnostic disable-next-line: duplicate-set-field -- intentional monkey-patch function vim.lsp.util.open_floating_preview(contents, syntax, opts, ...) opts = opts or {} opts.max_width = opts.max_width or 120 |
