Merge branch 'dev' into gentoo
apply nvim changes
This commit is contained in:
commit
d1ee18cb51
@ -70,7 +70,7 @@ hide_duplicates_count = yes
|
|||||||
# The width can be negative. In this case the actual width is the
|
# The width can be negative. In this case the actual width is the
|
||||||
# screen width minus the width defined in within the geometry option.
|
# screen width minus the width defined in within the geometry option.
|
||||||
#geometry = "250x50-40+40"
|
#geometry = "250x50-40+40"
|
||||||
geometry = "450x50-15+75"
|
geometry = "450x50-25+47"
|
||||||
|
|
||||||
# Shrink window if it's smaller than the width. Will be ignored if
|
# Shrink window if it's smaller than the width. Will be ignored if
|
||||||
# width is 0.
|
# width is 0.
|
||||||
|
@ -9,10 +9,10 @@ M = {
|
|||||||
lsp_path = vim.fn.stdpath("data").. "/lsp",
|
lsp_path = vim.fn.stdpath("data").. "/lsp",
|
||||||
|
|
||||||
-- misc
|
-- misc
|
||||||
sign_error = "",
|
sign_error = "",
|
||||||
sign_warning = "",
|
sign_warning = "",
|
||||||
sign_hint = "",
|
sign_hint = "",
|
||||||
sign_info = "",
|
sign_info = "",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Make it accessible everywhere
|
-- Make it accessible everywhere
|
||||||
|
@ -6,34 +6,35 @@
|
|||||||
local lsp = {}
|
local lsp = {}
|
||||||
|
|
||||||
vim.fn.sign_define(
|
vim.fn.sign_define(
|
||||||
"LspDiagnosticsSignError",
|
"DiagnosticSignError",
|
||||||
{
|
{
|
||||||
texthl = "LspDiagnosticsSignError",
|
texthl = "DiagnosticError",
|
||||||
text = globals.sign_error,
|
text = globals.sign_error,
|
||||||
numhl = "LspDiagnosticsSignError"
|
numhl = "DiagnosticError"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
vim.fn.sign_define(
|
vim.fn.sign_define(
|
||||||
"LspDiagnosticsSignWarning",
|
"DiagnosticSignWarn",
|
||||||
{
|
{
|
||||||
texthl = "LspDiagnosticsSignWarning",
|
texthl = "DiagnosticWarn",
|
||||||
text = globals.sign_warning,
|
text = globals.sign_warning,
|
||||||
numhl = "LspDiagnosticsSignWarning"}
|
numhl = "DiagnosticWarn"
|
||||||
)
|
|
||||||
vim.fn.sign_define(
|
|
||||||
"LspDiagnosticsSignHint",
|
|
||||||
{
|
|
||||||
texthl = "LspDiagnosticsSignHint",
|
|
||||||
text = globals.sign_hint,
|
|
||||||
numhl = "LspDiagnosticsSignHint"
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
vim.fn.sign_define(
|
vim.fn.sign_define(
|
||||||
"LspDiagnosticsSignInformation",
|
"DiagnosticSignHint",
|
||||||
{
|
{
|
||||||
texthl = "LspDiagnosticsSignInformation",
|
texthl = "DiagnosticHint",
|
||||||
|
text = globals.sign_hint,
|
||||||
|
numhl = "DiagnosticHint"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"DiagnosticSignInfo",
|
||||||
|
{
|
||||||
|
texthl = "DiagnosticInfo",
|
||||||
text = globals.sign_info,
|
text = globals.sign_info,
|
||||||
numhl = "LspDiagnosticsSignInformation"
|
numhl = "DiagnosticInfo"
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -103,8 +103,8 @@ local function get_lsp_diagnostics(bufnr)
|
|||||||
local result = {}
|
local result = {}
|
||||||
local levels = {
|
local levels = {
|
||||||
errors = "Error",
|
errors = "Error",
|
||||||
warnings = "Warning",
|
warnings = "Warn",
|
||||||
info = "Information",
|
info = "Info",
|
||||||
hints = "Hint"
|
hints = "Hint"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,17 +148,17 @@ local function statusline_focused()
|
|||||||
process_diagnostics(
|
process_diagnostics(
|
||||||
globals.sign_error .. " ",
|
globals.sign_error .. " ",
|
||||||
diagnostics.errors,
|
diagnostics.errors,
|
||||||
"%#LspDiagnosticsDefaultError#"
|
"%#DiagnosticError#"
|
||||||
),
|
),
|
||||||
process_diagnostics(
|
process_diagnostics(
|
||||||
globals.sign_warning .. " ",
|
globals.sign_warning .. " ",
|
||||||
diagnostics.warnings,
|
diagnostics.warnings,
|
||||||
"%#LspDiagnosticsDefaultWarning#"
|
"%#DiagnosticWarn#"
|
||||||
),
|
),
|
||||||
process_diagnostics(
|
process_diagnostics(
|
||||||
globals.sign_info .. " ",
|
globals.sign_info .. " ",
|
||||||
diagnostics.info,
|
diagnostics.info,
|
||||||
"%#LspDiagnosticsDefaultInformation#"
|
"%#DiagnosticInfo#"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 2596b02be402dae70a915898edc9c4391805c489
|
Subproject commit bd4119a8c1a57b84f9470950a514f52d81907abb
|
Reference in New Issue
Block a user