Skip to content

Commit

Permalink
fix: set_selected_env() does nothing (#145)
Browse files Browse the repository at this point in the history
* fix: set_selected_env() does nothing

* fix: centralize usage

* chore(version): bump

---------

Co-authored-by: houdinihacker <[email protected]>
Co-authored-by: Marco Kellershoff <[email protected]>
  • Loading branch information
3 people authored Aug 15, 2024
1 parent d572517 commit eb03136
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/kulala/globals/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local FS = require("kulala.utils.fs")

local M = {}

M.VERSION = "3.2.0"
M.VERSION = "3.2.1"
M.UI_ID = "kulala://ui"
M.SCRATCHPAD_ID = "kulala://scratchpad"
M.HEADERS_FILE = FS.get_plugin_tmp_dir() .. "/headers.txt"
Expand Down
3 changes: 2 additions & 1 deletion lua/kulala/init.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local UI = require("kulala.ui")
local SELECTOR = require("kulala.ui.selector")
local DB = require("kulala.db")
local ENV = require("kulala.parser.env")
local GLOBALS = require("kulala.globals")
local CONFIG = require("kulala.config")
local JUMPS = require("kulala.jumps")
Expand Down Expand Up @@ -63,6 +63,7 @@ M.scratchpad = function()
end

M.set_selected_env = function(env)
ENV.get_env()
if env == nil then
local has_telescope, telescope = pcall(require, "telescope")
if has_telescope then
Expand Down

0 comments on commit eb03136

Please sign in to comment.