nvim: don't start server if in firenvim
This commit is contained in:
parent
fdf41eb400
commit
59fc0eae47
|
@ -1,11 +1,11 @@
|
|||
local sockdir = (vim.env['XDG_RUNTIME_DIR']
|
||||
or vim.env['XDG_STATE_HOME'] or vim.env['HOME'] .. '/.local/state')
|
||||
vim.fn.mkdir(sockdir, 'p')
|
||||
if vim.fn.filereadable(sockdir .. '/nvim.sock') == 0 then
|
||||
vim.fn.serverstart(sockdir .. '/nvim.sock');
|
||||
end
|
||||
|
||||
if vim.g.started_by_firenvim then
|
||||
if not vim.g.started_by_firenvim then
|
||||
local sockdir = (vim.env['XDG_RUNTIME_DIR']
|
||||
or vim.env['XDG_STATE_HOME'] or vim.env['HOME'] .. '/.local/state')
|
||||
vim.fn.mkdir(sockdir, 'p')
|
||||
if vim.fn.filereadable(sockdir .. '/nvim.sock') == 0 then
|
||||
vim.fn.serverstart(sockdir .. '/nvim.sock');
|
||||
end
|
||||
else
|
||||
vim.g.firenvim_config = {
|
||||
localSettings = {
|
||||
[".*"] = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user