Skip to content

Commit

Permalink
🚑 Source vimrc on nvimp
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 11, 2024
1 parent 28308a0 commit d847c95
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/nvimp
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
-- luacheck: ignore 111 113
---@diagnostic disable: undefined-global
#!/usr/bin/env -S nvim --headless -l
local utils = require "prompt.utils"

if require"prompt".name == "lua" then
local file = vim.fs.joinpath(vim.fn.stdpath("config"), "init.vim")
if vim.fn.filereadable(file) == 1 then
vim.cmd.source(file)
end
file = vim.fs.joinpath(vim.fn.stdpath("config"), "init.lua")
if vim.fn.filereadable(file) == 1 then
loadfile(file)()
end
end

utils.init()
-- use ~/.config/nvim/init.vim
-- utils.source_configs()
Expand Down

0 comments on commit d847c95

Please sign in to comment.