We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28308a0 commit d847c95Copy full SHA for d847c95
bin/nvimp
@@ -1,6 +1,19 @@
1
+-- luacheck: ignore 111 113
2
+---@diagnostic disable: undefined-global
3
#!/usr/bin/env -S nvim --headless -l
4
local utils = require "prompt.utils"
5
6
+if require"prompt".name == "lua" then
7
+ local file = vim.fs.joinpath(vim.fn.stdpath("config"), "init.vim")
8
+ if vim.fn.filereadable(file) == 1 then
9
+ vim.cmd.source(file)
10
+ end
11
+ file = vim.fs.joinpath(vim.fn.stdpath("config"), "init.lua")
12
13
+ loadfile(file)()
14
15
+end
16
+
17
utils.init()
18
-- use ~/.config/nvim/init.vim
19
-- utils.source_configs()
0 commit comments