config(nvim): disable underline lsp
parent
1311d599f3
commit
4ecd83a722
|
@ -20,6 +20,8 @@ mock
|
||||||
|
|
||||||
# Python
|
# Python
|
||||||
venv
|
venv
|
||||||
|
ruff_cache
|
||||||
|
__pycache__
|
||||||
|
|
||||||
# Java
|
# Java
|
||||||
*.class
|
*.class
|
||||||
|
|
|
@ -109,19 +109,30 @@ require("lazy").setup({
|
||||||
flavour = "mocha",
|
flavour = "mocha",
|
||||||
transparent_background = false,
|
transparent_background = false,
|
||||||
custom_highlights = function(colors)
|
custom_highlights = function(colors)
|
||||||
|
-- Eva-01 vibe
|
||||||
|
-- https://enjoykeycap.github.io/docs/gmk-keycaps/Mecha-01/
|
||||||
|
-- https://www.pantone.com/connect/802-C
|
||||||
|
-- https://www.pantone.com/connect/267-C
|
||||||
|
local color_eva = {
|
||||||
|
fg = "#44d62c",
|
||||||
|
bg = "#5f249e",
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
-- Help my eyes
|
||||||
|
Comment = {
|
||||||
|
fg = colors.overlay2,
|
||||||
|
},
|
||||||
|
LineNr = {
|
||||||
|
fg = colors.overlay1,
|
||||||
|
},
|
||||||
-- Support mini.statusline
|
-- Support mini.statusline
|
||||||
StatusLineNC = {
|
StatusLineNC = {
|
||||||
fg = colors.flamingo,
|
fg = colors.flamingo,
|
||||||
},
|
},
|
||||||
-- Eva-01 vibe
|
-- https://neovim.io/doc/user/diagnostic.html#diagnostic-highlights
|
||||||
-- https://enjoykeycap.github.io/docs/gmk-keycaps/Mecha-01/
|
DiagnosticVirtualTextError = color_eva,
|
||||||
-- https://www.pantone.com/connect/802-C
|
DiagnosticSignError = color_eva,
|
||||||
-- https://www.pantone.com/connect/267-C
|
|
||||||
DiagnosticVirtualTextError = {
|
|
||||||
fg = "#44d62c",
|
|
||||||
bg = "#5f249e",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -202,8 +213,9 @@ require("lazy").setup({
|
||||||
"^\\.git$",
|
"^\\.git$",
|
||||||
"^\\.idea$",
|
"^\\.idea$",
|
||||||
"^\\.ruff_cache$",
|
"^\\.ruff_cache$",
|
||||||
"^\\.venv$",
|
|
||||||
"^\\.vscode$",
|
"^\\.vscode$",
|
||||||
|
"pycache",
|
||||||
|
"venv",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -418,6 +430,11 @@ require("lazy").setup({
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Python
|
||||||
|
-- https://github.com/Microsoft/pyright
|
||||||
|
-- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#pyright
|
||||||
|
lspconfig.pyright.setup({})
|
||||||
|
|
||||||
-- General
|
-- General
|
||||||
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev)
|
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev)
|
||||||
vim.keymap.set("n", "]d", vim.diagnostic.goto_next)
|
vim.keymap.set("n", "]d", vim.diagnostic.goto_next)
|
||||||
|
@ -458,6 +475,7 @@ require("lazy").setup({
|
||||||
|
|
||||||
-- https://neovim.io/doc/user/diagnostic.html#diagnostic-api
|
-- https://neovim.io/doc/user/diagnostic.html#diagnostic-api
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
|
underline = false,
|
||||||
virtual_text = {
|
virtual_text = {
|
||||||
prefix = "🏓",
|
prefix = "🏓",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue