Skip to content

Commit 43695d2

Browse files
committed
Set dap-repl filetype after all options are set
Allows users to override options in a FileType autocmd
1 parent 6aab7ce commit 43695d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/dap/repl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ local function new_buf()
2323
local buf = api.nvim_create_buf(true, true)
2424
api.nvim_buf_set_name(buf, '[dap-repl]')
2525
api.nvim_buf_set_option(buf, 'buftype', 'prompt')
26-
api.nvim_buf_set_option(buf, 'filetype', 'dap-repl')
2726
api.nvim_buf_set_option(buf, 'omnifunc', "v:lua.require'dap.repl'.omnifunc")
2827
api.nvim_buf_set_option(buf, 'buflisted', false)
2928
local ok, path = pcall(api.nvim_buf_get_option, prev_buf, 'path')
@@ -53,6 +52,7 @@ local function new_buf()
5352
end
5453
})
5554
end
55+
api.nvim_buf_set_option(buf, 'filetype', 'dap-repl')
5656
return buf
5757
end
5858

0 commit comments

Comments
 (0)