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:
@@ -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" },
|
||||
|
Reference in New Issue
Block a user