Comments (10)
simplescreenrecorder-2024-05-10_08.27.28.mp4
unable to reproduce, i hope you are using latest nvchad
from nvchad.
have you disabled semantic highlighting?
from nvchad.
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.
i'll test your config tonight and let u knowo
from nvchad.
I'll buy a couple of coffees for the effort 🙏🏻 Thank you so much
from nvchad.
@patrykk21 go to your lspconfig and add on_init for lua_ls
from nvchad.
Also if you face discoloration of some highlight groups
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.
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.
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.
Thanks for the 💸
Oh... It's
semanticTokens
and NvChad disables them by default. Figured that out :) I like it more disabled tbf hahah feels fasterI'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)
- NvTerm nested EDITOR sessions HOT 8
- Most Lsp commands not working. HOT 3
- Telescope image preview is not working HOT 3
- Throws error when opening file without having a C compiler installed HOT 1
- last letter of mode name going over bounds on mode box HOT 1
- Annoying issue with the terminal window HOT 1
- Opening any lua or vim file crashes neovim. HOT 1
- vim.lsp.get_active_clients() is deprecated HOT 2
- Modularize NvChad HOT 3
- Terminal Send CTRL + X to exit nano HOT 1
- leader + / for comment toggle doesnt work HOT 3
- gopls doesn't work with NvChad HOT 1
- vscode_colored statusline theme not working properly HOT 1
- Make nvchad for termux HOT 1
- Github Copilot , Lazy.lua NvChad HOT 1
- Vertical term width HOT 6
- Some Icons not displaying properly in filetree | Powershell HOT 12
- hererocks fails to install. HOT 3
- nvcheatsheet attempt to index failed 'cheatsheet' HOT 3
- :terminal theme doesn't match base46 theme
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 nvchad.