Comments (2)
I can't duplicate this. Do you have somewhere where I can look at your configuration?
Also, what version of nvim are you using?
from toggle-lsp-diagnostics.nvim.
Sorry, I have replaced this plugin with a small Lua snippet. Likely to be of no use, but just for context:
{ -- Underline error display
url = 'https://git.sr.ht/~whynothugo/lsp_lines.nvim',
config = function()
local lsp_lines = require('lsp_lines')
local counter = 0
local ll_toggle = function() -- Flip between diag. types
if counter == 0 then
vim.diagnostic.config({ virtual_text = false, virtual_lines = false })
vim.api.nvim_echo({{ "Diagnostic in code turned OFF", "Comment" }}, true, {})
counter = counter + 1
elseif counter == 1 then
vim.diagnostic.config({ virtual_text = false, virtual_lines = true })
vim.api.nvim_echo({{ "Underline diagnostics", "Comment" }}, true, {})
counter = counter + 1
elseif counter == 2 then
vim.diagnostic.config({ virtual_text = { prefix = '' }, virtual_lines = false })
vim.api.nvim_echo({{ "Inline diagnostics", "Comment" }}, true, {})
counter = 0
end
end
lsp_lines.setup()
vim.keymap.set("", "<leader>te",
ll_toggle, { desc = "Toggle LSP diagnostics" }
)
ll_toggle() -- Disable by default
end
}
from toggle-lsp-diagnostics.nvim.
Related Issues (9)
- how to disable lsp by default HOT 2
- Any toggle command show error "Invalid buffer name" HOT 3
- New nvim disable/enable approach HOT 1
- config does not apply when start the neovim HOT 4
- Suggested alternative approach HOT 4
- Error on :ToggleDiagOff HOT 3
- Toggling diagnostics resets my customization HOT 6
- Duplicated status message when toggling on HOT 3
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 toggle-lsp-diagnostics.nvim.