1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-03 08:59:24 +00:00

[neovim] Update plugins

This commit is contained in:
2025-04-12 13:48:21 +02:00
parent 6408d33eea
commit 436cdd76b2
3 changed files with 29 additions and 25 deletions

View File

@ -1,10 +1,13 @@
local projects = function()
local data = require("util.files").read(os.getenv("HOME") .. "/.config/nvim/neovim-projects.json")
local projects_path = vim.fn.expand("~/.config/nvim/neovim-projects.json")
local data = require("util.files").read(projects_path)
if data then
return vim.json.decode(data)
else
return {}
local ok, decoded = pcall(vim.json.decode, data)
return ok and decoded or {}
end
return {}
end
require("neovim-project").setup({