mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-03 08:59:24 +00:00
[neovim] Move utils to a external file
This commit is contained in:
19
.config/nvim/lua/plugins/neovim-project.lua
Normal file
19
.config/nvim/lua/plugins/neovim-project.lua
Normal file
@ -0,0 +1,19 @@
|
||||
local projects = function()
|
||||
local data = require("util.files").read(os.getenv("HOME") .. "/.config/nvim/neovim-projects.json")
|
||||
if data then
|
||||
return vim.json.decode(data)
|
||||
else
|
||||
return {}
|
||||
end
|
||||
end
|
||||
|
||||
require("neovim-project").setup({
|
||||
projects = projects(),
|
||||
last_session_on_startup = false,
|
||||
dashboard_mode = true,
|
||||
filetype_autocmd_timeout = 0,
|
||||
autosave_ignore_filetypes = {
|
||||
"neo-tree",
|
||||
"trouble",
|
||||
},
|
||||
})
|
Reference in New Issue
Block a user