Skip to content

Commit 82f9156

Browse files
committed
Expose language intelligence commands in turtle.nvim
1 parent 344a714 commit 82f9156

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

integrations/neovim/turtle.nvim/plugin/turtle.lua

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ vim.api.nvim_create_user_command('TurtleSurfaceRequestExecution', function(opts)
2525
turtle.request_surface_execution(opts.fargs)
2626
end, { nargs = '+' })
2727

28+
vim.api.nvim_create_user_command('TurtleDiagnostics', function(opts)
29+
turtle.diagnostics(opts.args)
30+
end, { nargs = '?' })
31+
32+
vim.api.nvim_create_user_command('TurtleSymbols', function(opts)
33+
turtle.symbols(opts.args)
34+
end, { nargs = '?' })
35+
36+
vim.api.nvim_create_user_command('TurtleExplainSelection', function()
37+
turtle.explain_selection()
38+
end, { range = true })
39+
40+
vim.api.nvim_create_user_command('TurtleProposePatch', function(opts)
41+
turtle.propose_patch(opts.args)
42+
end, { nargs = '*' })
43+
44+
vim.api.nvim_create_user_command('TurtleIndex', function(opts)
45+
turtle.index(opts.args)
46+
end, { nargs = '?' })
47+
2848
vim.api.nvim_create_user_command('TurtleCloudFogSurfaces', function()
2949
turtle.cloudfog_surfaces()
3050
end, {})

0 commit comments

Comments
 (0)