Skip to content

Commit dcc945b

Browse files
committed
add ft to terminal provider
1 parent 7124dde commit dcc945b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/opencode/provider/terminal.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function Terminal:start()
4848

4949
self.bufnr = vim.api.nvim_create_buf(true, false)
5050
self.winid = vim.api.nvim_open_win(self.bufnr, true, self.opts)
51+
vim.api.nvim_set_option_value("filetype", "opencode_terminal", { buf = self.bufnr })
5152

5253
-- Redraw terminal buffer on initial render.
5354
-- Fixes empty columns on the right side.

0 commit comments

Comments
 (0)