Skip to content

Commit

Permalink
feat: set swift filetype for *.swiftinterface buffers (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-kulik authored Sep 29, 2024
1 parent 14211d4 commit 41a4ec9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/xcodebuild/core/autocmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ function M.setup()
end,
})

vim.api.nvim_create_autocmd({ "BufReadPost" }, {
group = autogroup,
pattern = "*.swiftinterface",
command = "set filetype=swift",
})

if config.marks.show_diagnostics or config.marks.show_signs then
vim.api.nvim_create_autocmd({ "BufReadPost" }, {
group = autogroup,
Expand Down

0 comments on commit 41a4ec9

Please sign in to comment.