File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1097,6 +1097,24 @@ return inject_all({
10971097 dev = true ,
10981098 opts = {},
10991099 },
1100+ {
1101+ " jbyuki/one-small-step-for-vimkind" ,
1102+ lazy = false ,
1103+ config = function ()
1104+ local dap = require (" dap" )
1105+ dap .configurations .lua = {
1106+ {
1107+ type = " nlua" ,
1108+ request = " attach" ,
1109+ name = " Attach to running Neovim instance" ,
1110+ },
1111+ }
1112+
1113+ dap .adapters .nlua = function (callback , config )
1114+ callback ({ type = " server" , host = config .host or " 127.0.0.1" , port = config .port or 8086 })
1115+ end
1116+ end ,
1117+ },
11001118 },
11011119 keys = {
11021120 {
@@ -1111,6 +1129,11 @@ return inject_all({
11111129 if # require (" dap.breakpoints" ).to_qf_list (require (" dap.breakpoints" ).get ()) == 0 then
11121130 dap .toggle_breakpoint ()
11131131 end
1132+ -- if we're in a lua file, run the file
1133+ if vim .bo .filetype == " lua" then
1134+ require (" osv" ).run_this ()
1135+ return
1136+ end
11141137 -- if we're in a test file, run in test mode
11151138 local ok , inTestfile , testName = pcall (SurroundingTestName )
11161139 if ok and inTestfile then
You can’t perform that action at this time.
0 commit comments