Skip to content

Commit 12f0e11

Browse files
authored
Merge pull request #142 from adigitoleo/fix-ft-autocmds
fix: Ensure filetype is set in sidebar mode
2 parents 44885f9 + 700df76 commit 12f0e11

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/carbon/view.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ function view.activate(options_param)
174174
else
175175
vim.api.nvim_win_set_buf(0, current_view:buffer())
176176
end
177+
vim.api.nvim_buf_set_option(
178+
current_view:buffer(),
179+
'filetype',
180+
'carbon.explorer'
181+
)
177182
end
178183

179184
function view.close_sidebar()

0 commit comments

Comments
 (0)