Comments (4)
Yeah, you should definitely not do that. Most people use a Lua config folder for that. /Lua/config/...
Plugins will definitely break the way you do it right now, since you're overwriting their global namespace.
from trouble.nvim.
I don't see this error. Could you open that runtime file and post what's on that line (and surrounding lines)?
What commit is that Neovim built?
from trouble.nvim.
Code is below. I'm on 0.5.0 stable installed using homebrew on macos.
1075
1076 if resolve_optional_value(config.update_in_insert) then
1077 M._clear_scheduled_display(bufnr, client_id)
1078 else
1079 local mode = vim.api.nvim_get_mode()
1080
1081 if string.sub(mode.mode, 1, 1) == 'i' then
1082 M._schedule_display(bufnr, client_id, config)
1083 return
1084 end
1085 end
1086
1087 M.clear(bufnr, client_id)
1088
1089 diagnostics = diagnostics or M.get(bufnr, client_id)
1090
1091 vim.api.nvim_command("doautocmd <nomodeline> User LspDiagnosticsChanged")
1092
1093 if not diagnostics or vim.tbl_isempty(diagnostics) then
1094 return
1095 end
1096
1097 local underline_opts = resolve_optional_value(config.underline)
1098 if underline_opts then
1099 M.set_underline(diagnostics, bufnr, client_id, nil, underline_opts)
1100 end
from trouble.nvim.
Looks like this was only happening when I have my config for this plugin in a lua/trouble.lua
file. Renaming this file to something else fixes it. I do this with other plugins without any problems (e.g. I can have a lua/telescope.lua
file). Not sure if you consider this a bug or not.
from trouble.nvim.
Related Issues (20)
- bug v3: Order of entries changes, when jumping to next entry in a trouble telescope or quickfix list HOT 4
- bug: Invalid Window id Error HOT 2
- bug v3: using ':trouble.next' when cursor isn't in the trouble buffer often doesn't work HOT 1
- bug v3: Preview.lua: Invalid `end_col`: out of range HOT 1
- bug v3: diagnostic icon can not display HOT 4
- bug v3: preview with main window should open folds HOT 4
- bug v3: Lack of automatic jump when only one result entry HOT 1
- bug v3: Trouble crashes in v2 and v3 when selecting a diagnostic published for a directory HOT 2
- feature: Highlight group for Lualine components
- bug: Not displaying text / can't see items in Trouble HOT 2
- bug v3: requires Treesitter `markdown_inline` HOT 6
- bug v3: Can't turn off cc in trouble windows HOT 2
- bug v3: Error viewing astro file HOT 2
- bug v3: Neovim 0.10 required (docs say 0.9.2 or greater)
- bug v3: `auto_close` and `auto_open` broken HOT 2
- feature: folding actions working globally across the fold HOT 1
- feature: disable icons HOT 1
- bug v3: missing Trouble commands HOT 1
- feature: Merge results from different LSP sources sharing the same `uri` and `range`
- bug v3: Error with Lualine component HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trouble.nvim.