Comments (6)
Because this way has been deprecated for the LSP diagnostic icons. You should change them in
{
"neovim/nvim-lspconfig",
opts = {
diagnostics = {
signs = {
text = {
[vim.diagnostic.severity.ERROR] = your_sign_1,
[vim.diagnostic.severity.WARN] = your_sign_2,
[vim.diagnostic.severity.HINT] = your_sign_3,
[vim.diagnostic.severity.INFO] = your_sign_4,
},
},
},
},
}
from lazyvim.
Those icons are an option for the LazyVim plugin. It's all in the docs.
https://www.lazyvim.org/configuration#icons--colorscheme
from lazyvim.
Thank you very much. I misread this configuration. I'll try it later. This project is great.
from lazyvim.
@folke Why do I have this effect when I configure it this way?
This is my configuration:
-- Configure LazyVim to load gruvbox
return {
"LazyVim/LazyVim",
opts = {
colorscheme = "sonokai",
icons = {
diagnostics = {
Error = "",
Warn = "",
Hint = "",
Info = "",
},
},
},
}
from lazyvim.
Actually it should happen with the changing the icons in LazyVim spec, but I believe that nvim-lspconfig
opts
are getting parsed during parsing phase, thus LazyVim.config.icons.diagnostics
is getting evaluated at that moment and gets the icon from the default config instead of what the user has specified in his personal configuration.
If we make opts
a function, then LazyVim.config.icons.diagnostics
get evaluated when nvim-lspconfig
gets loaded and it takes correctly into consideration whatever icon the user has changed in his personal configuration for LazyVim spec.
Should we make that change @folke?
from lazyvim.
因为这种方式已不再适用于LSP诊断图标。您应该在代码中进行更改。
{ "neovim/nvim-lspconfig", opts = { diagnostics = { signs = { text = { [vim.diagnostic.severity.ERROR] = your_sign_1, [vim.diagnostic.severity.WARN] = your_sign_2, [vim.diagnostic.severity.HINT] = your_sign_3, [vim.diagnostic.severity.INFO] = your_sign_4, }, }, }, }, }
@dpetka2001. Thank you. It is indeed possible to modify the diagnostic icon. I feel that adding this feature is very good. Because as a user of lazyvim, many people want to beautify the lazyvim theme they use.
from lazyvim.
Related Issues (20)
- bug: php-cs-fixer unavailable: Formatter config missing or incomplete (PHP) HOT 2
- bug: settings for outline.nvim cause symbol search crash HOT 2
- bug: debugging C# with omnisharp - netcoredbg.CMD exited with code: 1
- bug: weird keymap error HOT 3
- feature: use which-keys new dynamic `desc` and `icon` for the ui toggles HOT 3
- bug: telescope require `fd` when find files HOT 1
- bug: Mason package path not found for debugpy HOT 7
- bug: "fzf project " does not set pwd to the project path, which is different with what "telescope project" do. HOT 2
- feature: correctly overriding core plugin mini.ai
- bug: rust codelens is not complete HOT 1
- bug: lsp keymaps calling functions rather than passing function HOT 1
- bug: Mason plugin doesn't install mason-registry HOT 3
- bug: Error with nvim-cmp HOT 3
- feature: allow for overriding keymaps of dial.nvim
- bug: Can't Select Items on cmp HOT 1
- bug: Ctrl-n and Ctrl-p to go through suggestions not working anymore. HOT 2
- bug: cursor abnormal HOT 2
- bug: WARNING prettier unavailable: Condition failed
- feature: Do not update plug-ins repeatedly HOT 4
- feature: Expose a function to "process" a `toggle` to the users HOT 18
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 lazyvim.