|
@@ -23,7 +23,7 @@ end
|
|
local function get_formatter_suggestion_msg(ft)
|
|
local function get_formatter_suggestion_msg(ft)
|
|
local supported_formatters = u.get_supported_formatters_by_filetype(ft)
|
|
local supported_formatters = u.get_supported_formatters_by_filetype(ft)
|
|
return {
|
|
return {
|
|
- "-------------------------------------------------------------------",
|
|
|
|
|
|
+ "───────────────────────────────────────────────────────────────────",
|
|
"",
|
|
"",
|
|
" HINT ",
|
|
" HINT ",
|
|
"",
|
|
"",
|
|
@@ -35,17 +35,17 @@ local function get_formatter_suggestion_msg(ft)
|
|
.. "lvim.lang."
|
|
.. "lvim.lang."
|
|
.. tostring(ft)
|
|
.. tostring(ft)
|
|
.. [[.formatting = { { exe = ']]
|
|
.. [[.formatting = { { exe = ']]
|
|
- .. table.concat(supported_formatters, "|")
|
|
|
|
|
|
+ .. table.concat(supported_formatters, "│")
|
|
.. [[' } }]],
|
|
.. [[' } }]],
|
|
"",
|
|
"",
|
|
- "-------------------------------------------------------------------",
|
|
|
|
|
|
+ "───────────────────────────────────────────────────────────────────",
|
|
}
|
|
}
|
|
end
|
|
end
|
|
|
|
|
|
local function get_linter_suggestion_msg(ft)
|
|
local function get_linter_suggestion_msg(ft)
|
|
local supported_linters = u.get_supported_linters_by_filetype(ft)
|
|
local supported_linters = u.get_supported_linters_by_filetype(ft)
|
|
return {
|
|
return {
|
|
- "-------------------------------------------------------------------",
|
|
|
|
|
|
+ "───────────────────────────────────────────────────────────────────",
|
|
"",
|
|
"",
|
|
" HINT ",
|
|
" HINT ",
|
|
"",
|
|
"",
|
|
@@ -57,10 +57,10 @@ local function get_linter_suggestion_msg(ft)
|
|
.. "lvim.lang."
|
|
.. "lvim.lang."
|
|
.. tostring(ft)
|
|
.. tostring(ft)
|
|
.. [[.linters = { { exe = ']]
|
|
.. [[.linters = { { exe = ']]
|
|
- .. table.concat(supported_linters, "|")
|
|
|
|
|
|
+ .. table.concat(supported_linters, "│")
|
|
.. [[' } }]],
|
|
.. [[' } }]],
|
|
"",
|
|
"",
|
|
- "-------------------------------------------------------------------",
|
|
|
|
|
|
+ "───────────────────────────────────────────────────────────────────",
|
|
}
|
|
}
|
|
end
|
|
end
|
|
|
|
|
|
@@ -83,14 +83,14 @@ function M.create_simple_popup(buf_lines, callback)
|
|
opts.col = math.floor(vim.o.columns * col_start_percentage)
|
|
opts.col = math.floor(vim.o.columns * col_start_percentage)
|
|
opts.width = math.floor(vim.o.columns * width_percentage)
|
|
opts.width = math.floor(vim.o.columns * width_percentage)
|
|
opts.border = {
|
|
opts.border = {
|
|
- "┌",
|
|
|
|
- "-",
|
|
|
|
- "┐",
|
|
|
|
- "|",
|
|
|
|
- "┘",
|
|
|
|
- "-",
|
|
|
|
- "└",
|
|
|
|
- "|",
|
|
|
|
|
|
+ "╭",
|
|
|
|
+ "─",
|
|
|
|
+ "╮",
|
|
|
|
+ "│",
|
|
|
|
+ "╯",
|
|
|
|
+ "─",
|
|
|
|
+ "╰",
|
|
|
|
+ "│",
|
|
}
|
|
}
|
|
|
|
|
|
local win_id = vim.api.nvim_open_win(bufnr, true, opts)
|
|
local win_id = vim.api.nvim_open_win(bufnr, true, opts)
|