1
0
Fork 0

nvim: don't start server if in firenvim

This commit is contained in:
tastytea 2022-09-05 02:18:34 +02:00
parent fdf41eb400
commit 59fc0eae47
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 8 additions and 8 deletions

View File

@ -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 = {
[".*"] = {