1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-09-20 03:09:09 +00:00

[neovim] Remove yaml-companion and add SchemaStore.nvim

This commit is contained in:
2025-09-19 19:23:18 +02:00
parent d090709d1c
commit 6b87793f44
6 changed files with 44 additions and 46 deletions

View File

@@ -49,21 +49,6 @@ local venv = function()
return ""
end
local get_filetype = function()
local ft = vim.bo.filetype or ""
if ft == "yaml" then
local schema = require("yaml-companion").get_buf_schema(0)
if not schema or not schema.result or not schema.result[1].name then
return ft
end
return ft .. " (" .. schema.result[1].name .. ")"
else
return ft
end
end
local gitblame = require("gitblame")
vim.g.gitblame_date_format = "%r"
@@ -170,7 +155,12 @@ require("lualine").setup({
diff,
spaces,
"encoding",
{ get_filetype, separator = "" },
{
"filetype",
colored = false,
icon_only = false,
icon = { align = "left" },
},
},
lualine_y = { "progress" },
lualine_z = { "location" },