Skip to content

Commit 19a38dd

Browse files
authored
fix(select): move config inside of marks function to prevent import loop (#1361)
Signed-off-by: Tomas Slusny <[email protected]>
1 parent c37ec3c commit 19a38dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/CopilotChat/select.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
local constants = require('CopilotChat.constants')
1010
local utils = require('CopilotChat.utils')
11-
local config = require('CopilotChat.config')
1211

1312
local M = {}
1413

@@ -39,6 +38,7 @@ end
3938
--- Get the marks used for selection
4039
---@return string[]
4140
function M.marks()
41+
local config = require('CopilotChat.config')
4242
local marks = { '<', '>' }
4343
if config.selection == 'unnamed' then
4444
marks = { '[', ']' }

0 commit comments

Comments
 (0)