Coder Social home page Coder Social logo

Comments (4)

folke avatar folke commented on May 19, 2024 1

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.

folke avatar folke commented on May 19, 2024

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.

nkhlmn avatar nkhlmn commented on May 19, 2024

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.

nkhlmn avatar nkhlmn commented on May 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.