Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Mar 4, 2024
1 parent 9a4ddc4 commit c4ab74c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lua/dotvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ end

local M = {}

local function load_nix_aware_file()
local path = vim.fn.stdpath("config") .. "/nix-aware.json"
if not not vim.uv.fs_stat(path) then
local lib = require("dora.lib")
local content = lib.fs.read_file(path)
if content ~= nil then
return vim.fn.json_decode(content)
end
end
return {}
end

function M.setup(opts)
install_missing_dora()

Expand Down Expand Up @@ -117,6 +129,8 @@ function M.setup(opts)
end
end

opts.nix = load_nix_aware_file()

dora.setup(opts)

vim.cmd("colorscheme catppuccin")
Expand Down

0 comments on commit c4ab74c

Please sign in to comment.