Skip to content

Commit 6452bf8

Browse files
committed
fix(keymaps): switch external editor from Zed to Sublime Text in openthings keymap
Replace Zed CLI with Sublime Text for opening files via keymap to ensure correct editor is launched.
1 parent b9198c8 commit 6452bf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lua/dcai/keymaps/openthings.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
local utils = require('dcai.keymaps.utils')
22

3-
-- local subl = '/Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl'
4-
local zed = [[/Applications/Zed.app/Contents/MacOS/cli]]
3+
local subl = '/Applications/Sublime\\ Text.app/Contents/SharedSupport/bin/subl'
4+
-- local zed = [[/Applications/Zed.app/Contents/MacOS/cli]]
55

66
local openthings_keymap = {
77
{ '<leader>o', group = 'open things' },
@@ -34,7 +34,7 @@ local openthings_keymap = {
3434
function()
3535
-- has to be wrapped because filename must be lazy evaluated
3636
utils.lazy_cmd_with_window(
37-
zed,
37+
subl,
3838
{ disable_popup = true, args = { vim.fn.expand('%:p') } },
3939
'open file in external editor'
4040
)()

0 commit comments

Comments
 (0)