File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ DevcontainerConnect devcontainer-cli.nvim.txt /*DevcontainerConnect*
2
+ DevcontainerDown devcontainer-cli.nvim.txt /*DevcontainerDown*
3
+ DevcontainerExec devcontainer-cli.nvim.txt /*DevcontainerExec*
4
+ DevcontainerToggle devcontainer-cli.nvim.txt /*DevcontainerToggle*
5
+ DevcontainerUp devcontainer-cli.nvim.txt /*DevcontainerUp*
6
+ devcontainer-cli.nvim devcontainer-cli.nvim.txt /*devcontainer-cli.nvim*
7
+ devcontainer-cli.nvim.txt devcontainer-cli.nvim.txt /*devcontainer-cli.nvim.txt*
Original file line number Diff line number Diff line change @@ -230,8 +230,11 @@ function M.create_connect_cmd()
230
230
callback =
231
231
function ()
232
232
local connect_command = {}
233
- if vim .env .TMUX ~= " " then
233
+ if vim .env .TMUX ~= nil then
234
234
connect_command = { " tmux split-window -h -t \" $TMUX_PANE\" " }
235
+ elseif vim .fn .executable (" wezterm" ) == 1 then
236
+ connect_command = { " wezterm cli split-pane --right --cwd . -- bash -c" }
237
+ dev_command = " \" " .. dev_command .. " \" "
235
238
elseif vim .fn .executable (" allacrity" ) == 1 then
236
239
connect_command = { " alacritty --working-directory . --title \" Devcontainer\" -e" }
237
240
elseif vim .fn .executable (" gnome-terminal" ) == 1 then
@@ -242,6 +245,7 @@ function M.create_connect_cmd()
242
245
connect_command = { " Terminal.app" }
243
246
else
244
247
log .error (" no supported terminal emulator found." )
248
+ return false
245
249
end
246
250
247
251
table.insert (connect_command , dev_command )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ log.new = function(config, standalone)
96
96
local lineinfo = info .short_src .. " :" .. info .currentline
97
97
98
98
-- Output to console
99
- if config .use_console and level < levels [config .console_level ] then
99
+ if config .use_console and level >= levels [config .console_level ] then
100
100
local console_string = string.format (
101
101
" [%-6s%s] %s: %s" ,
102
102
nameupper ,
@@ -120,7 +120,7 @@ log.new = function(config, standalone)
120
120
end
121
121
122
122
-- Output to log file
123
- if config .use_file and level < levels [config .log_level ] then
123
+ if config .use_file and level >= levels [config .log_level ] then
124
124
local fp = io.open (outfile , " a" )
125
125
local str = string.format (" [%-6s%s] %s: %s\n " ,
126
126
nameupper , os.date (), lineinfo , msg )
You can’t perform that action at this time.
0 commit comments