initial commit for native-only neovim plugin configuration
This commit is contained in:
+11
-10
@@ -1,6 +1,6 @@
|
||||
|
||||
--[[
|
||||
|
||||
|
||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣷⣦⣄⡀
|
||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣷⣦⣄⡀
|
||||
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣴⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣦⣄⡀
|
||||
@@ -26,22 +26,23 @@
|
||||
| _/ /_____\__ \ || (_| | (__| <
|
||||
|_|/___| |___/\__\__,_|\___|_|\_\
|
||||
|
||||
Neovim 0.12 configuration
|
||||
(c) Frank Zechert 2026
|
||||
Neovim v0.12 configuration
|
||||
(C) Frank Zechert 2026
|
||||
]]
|
||||
|
||||
vim.diagnostic.config({
|
||||
update_in_insert = false,
|
||||
update_in_insert = true,
|
||||
severity_sort = true,
|
||||
float = {
|
||||
border = vim.g.ui.border,
|
||||
border = vim.g.ui.popupborder,
|
||||
source = true,
|
||||
},
|
||||
underline = true,
|
||||
-- underline only from a specified severity level
|
||||
-- underline = { severity = { min = vim.diagnostic.severity.WARN } },
|
||||
virtual_text = {
|
||||
prefix = vim.g.ui.symbols.diagnostic.virtual_text_prefix,
|
||||
severity = nil, -- show all severity
|
||||
severity = nil, -- show all severities
|
||||
spacing = 2, -- extra spacing between text and code
|
||||
virt_text_pos = "eol",
|
||||
source = "if_many",
|
||||
@@ -53,19 +54,19 @@ vim.diagnostic.config({
|
||||
INFO = vim.g.ui.symbols.diagnostic.sign_info,
|
||||
HINT = vim.g.ui.symbols.diagnostic.sign_hint,
|
||||
}
|
||||
return string.format("%s", diagnostic.message)
|
||||
return string.format("%s: %s", symbols[severity], diagnostic.message)
|
||||
end,
|
||||
|
||||
},
|
||||
virtual_lines = false,
|
||||
jump = {
|
||||
-- when jumping to a diagnostic message, automatically open the diagnostic float
|
||||
on_jump = function(_, bufnr)
|
||||
vim.diagnostic.open_float({
|
||||
bufnr = bufnr,
|
||||
scope = 'cursor',
|
||||
scope = "cursor",
|
||||
focus = false
|
||||
})
|
||||
end,
|
||||
end
|
||||
},
|
||||
signs = {
|
||||
-- icons in sign column
|
||||
|
||||
Reference in New Issue
Block a user