Skip to content

Commit

Permalink
fix: disable expandtab for go
Browse files Browse the repository at this point in the history
  • Loading branch information
Wansmer committed Nov 23, 2024
1 parent 0d81326 commit 3167330
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/minimal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ for _, plugin in ipairs(dependencies) do
install_dep(plugin)
end

vim.api.nvim_create_autocmd('FileType', {
callback = function()
if vim.bo.filetype == 'go' then
vim.bo.expandtab = false
end
end,
})

require('plenary.busted')
require('nvim-treesitter.configs').setup({
ensure_installed = require('treesj.langs').configured_langs,
Expand Down

0 comments on commit 3167330

Please sign in to comment.