Coder Social home page Coder Social logo

Comments (10)

siduck avatar siduck commented on July 23, 2024
simplescreenrecorder-2024-05-10_08.27.28.mp4

unable to reproduce, i hope you are using latest nvchad

from nvchad.

siduck avatar siduck commented on July 23, 2024

have you disabled semantic highlighting?

from nvchad.

patrykk21 avatar patrykk21 commented on July 23, 2024

I'm using NvChad 2.5.

Not sure what semantic highlight is? Could you provide more info?

I'm adding the plugin setting to plugin/auto-session.lua not init.lua, does that matter?

I think I'm using NvChad completely wrong and that's why I'm having this issue.

I pushed my dotfiles here if you are willing to have a look: https://github.com/patrykk21/dotfiles/tree/master/nvim

Particularly I think I'm very wrong about the plugins/init.lua 😅
But I didn't know how to update the dependencies or configurations of some plugins without copy and pasting the config.

from nvchad.

siduck avatar siduck commented on July 23, 2024

i'll test your config tonight and let u knowo

from nvchad.

patrykk21 avatar patrykk21 commented on July 23, 2024

I'll buy a couple of coffees for the effort 🙏🏻 Thank you so much

from nvchad.

siduck avatar siduck commented on July 23, 2024

@patrykk21 go to your lspconfig and add on_init for lua_ls

image

from nvchad.

siduck avatar siduck commented on July 23, 2024

Also if you face discoloration of some highlight groups
image

just add this in your main init.lua file

dofile(vim.g.nvchad_theme .. "syntax")
dofile(vim.g.nvchad_theme .. "treesitter")

i know its a workaround, but that wrong color issue happens only with that session plugin

from nvchad.

patrykk21 avatar patrykk21 commented on July 23, 2024

Thank you for your help!

So by adding dofile(vim.g.nvchad_theme .. "syntax") I don't have the issue with the session plugin anymore.
I added it to the config step of 'lspconfig` plugin.

But with or without the session plugin I noticed that my colors don't change whether I have LSP turned on or not, I thought LSP should be coloring text parts better?
I just want to make sure I'm not missing out on some LSP improvements

PS. sent you some 💵 for ☕

from nvchad.

patrykk21 avatar patrykk21 commented on July 23, 2024

Oh... It's semanticTokens and NvChad disables them by default. Figured that out :)
I like it more disabled tbf hahah feels faster

I'd have a question about dofile - if I may.
What is it exactly and how do I use it properly?

from nvchad.

siduck avatar siduck commented on July 23, 2024

Thanks for the 💸

Oh... It's semanticTokens and NvChad disables them by default. Figured that out :) I like it more disabled tbf hahah feels faster

I'd have a question about dofile - if I may. What is it exactly and how do I use it properly?

dofile basically loads a lua file, like require function can be used to import lua modules with names. But in dofile you have to enter full path of the lua file. thats why i used the vim.g.base46_cache global !!

I thought LSP should be coloring text parts better

yes it should but i think in some languages only, if you get better semantic token highlights on non nvchad configs then raise an issue on base46 repo. Also you need to add our base46 semantic_tokens integration . Only a set of base46 integrations are loaded and compiled by default in nvchad.

To add a base46 integration, check https://nvchad.com/docs/config/theming/#integrations

from nvchad.

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.