Skip to content

Commit abffd15

Browse files
committed
rm --clean option since it does not allow to run script outside the eca-nvim dir
1 parent 59bf0f2 commit abffd15

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

lua/eca/server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function M:start(opts)
112112

113113
local lua_cmd = string.format("lua ServerPath.run(%s)", Utils.lua_quote(Config.server_path or ""))
114114

115-
local cmd = { nvim_exe, "--headless", "--noplugin", "--clean", "-u", script_path, "-c", lua_cmd }
115+
local cmd = { nvim_exe, "--headless", "--noplugin", "-u", script_path, "-c", lua_cmd }
116116

117117
vim.system(cmd, { text = true }, function(out)
118118
if out.code ~= 0 then

scripts/server_path.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ local ServerPath = {}
33
-- Setup if headless
44
if #vim.api.nvim_list_uis() == 0 then
55
_G.ServerPath = ServerPath
6-
vim.cmd([[let &rtp.=','.getcwd()]])
7-
vim.cmd('set rtp+=deps/nui.nvim')
8-
vim.cmd('set rtp+=deps/eca-nvim')
96
vim.o.swapfile = false
107
vim.o.backup = false
118
vim.o.writebackup = false

tests/test_server_path.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ local function setup_test_environment()
99
"nvim",
1010
"--headless",
1111
"--noplugin",
12-
"--clean",
1312
"--cmd",
1413
[[lua package.preload["eca.path_finder"] = function()
1514
local M = {}

0 commit comments

Comments
 (0)