diff options
author | Daniil Rozanov <daniilrozzanov@gmail.com> | 2024-04-24 04:14:52 +0300 |
---|---|---|
committer | Daniil Rozanov <daniilrozzanov@gmail.com> | 2024-04-24 04:14:52 +0300 |
commit | 2470bad1151fc49941c3821f187c6c232c0cec78 (patch) | |
tree | 98d8cc807cf4f6a1b747aaa8e91c94b4b8f1649f /lua | |
parent | 0703f679c83da5254f50b1e78af1220a3a6882a4 (diff) |
feat: handle focus option
Diffstat (limited to 'lua')
-rw-r--r-- | lua/cmake/config.lua | 2 | ||||
-rw-r--r-- | lua/cmake/terminal.lua | 5 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lua/cmake/config.lua b/lua/cmake/config.lua index 3ce4f98..0e3a641 100644 --- a/lua/cmake/config.lua +++ b/lua/cmake/config.lua @@ -35,7 +35,7 @@ local default_config = { close_on_exit = false, hidden = false, clear_env = false, - focus = true, + focus = false, }, notification = { after = "success", diff --git a/lua/cmake/terminal.lua b/lua/cmake/terminal.lua index e086644..9ba8cb1 100644 --- a/lua/cmake/terminal.lua +++ b/lua/cmake/terminal.lua @@ -83,11 +83,8 @@ M.target_execute = function(command, opts) runnable:open() end vim.notify(vim.inspect(command), vim.log.levels.INFO) - if command.cd then - runnable:send("cd " .. command.cd) - end if command.cmd then - runnable:send(command.cmd) + runnable:send(command.cmd, not config.runner_terminal.focus) end end |