Skip to content

Commit 79899e9

Browse files
authored
refactor: simplify handler assignment in copilot_ls.lua (#49)
1 parent 173c015 commit 79899e9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lsp/copilot_ls.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ return {
2323
enabled = true,
2424
},
2525
},
26-
handlers = setmetatable({}, {
27-
__index = function(_, method)
28-
return require("copilot-lsp.handlers")[method]
29-
end,
30-
}),
26+
handlers = require("copilot-lsp.handlers"),
3127
root_dir = vim.uv.cwd(),
3228
on_init = function(client)
3329
local au = vim.api.nvim_create_augroup("copilotlsp.init", { clear = true })

0 commit comments

Comments
 (0)