Skip to content

Commit

Permalink
Merge branch 'main' into feat-1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bishoy-at-pieces authored Dec 18, 2024
2 parents 87110dc + a9e9ae3 commit 07ac63d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lua/pieces/assets/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ local function on_input(input)
for i, result in ipairs(snippets_search_results) do
local start_idx, end_idx = result.name:lower():find(input:lower())
if start_idx and end_idx then
vim.api.nvim_buf_add_highlight(results_popup.bufnr, -1, 'Search', i - 1, start_idx - 1,
end_idx)
vim.api.nvim_buf_add_highlight(results_popup.bufnr, -1, 'Search', i - 1, start_idx + 3,
end_idx + 4)
end
end
end
Expand Down Expand Up @@ -158,6 +158,8 @@ function M.setup()
updater.results_popup = results_popup -- Update the new result popup
layout:mount()
vim.api.nvim_set_current_win(results_popup.winid)
snippets_search_results = snippets.snippets
updater.items = snippets_search_results
updater:setup()
end

Expand Down
3 changes: 2 additions & 1 deletion rplugin/python3/pieces_python/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def on_startup(cls, ws):

if Settings.load_settings().get("version") != __version__:
Settings.nvim.async_call(Settings.nvim.command, 'call PiecesRunRemotePlugins()')
Settings.update_settings(version=__version__)
Settings.update_settings(version = __version__)


Settings.api_client.model_name = Settings.load_settings().get("model_name","GPT-4o Chat Model")
BaseWebsocket.start_all()
Expand Down

0 comments on commit 07ac63d

Please sign in to comment.