1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2025-07-01 23:19:25 +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

@ -5,9 +5,9 @@ require("avante").setup({
-- claude = {
-- api_key_name = "cmd:secret-tool lookup description ANTHROPIC_API_KEY",
-- },
web_search_engine = {
provider = "tavily",
},
-- web_search_engine = {
-- provider = "tavily",
-- },
hints = { enabled = false },
behaviour = {
enable_claude_text_editor_tool_mode = true,

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({