▲ 0 r/neovim
Auto-indent Doesn't Work for c files on macOS
I have modified kickstart and it works well on my Debian system, but on macOS the auto-indent doesn't work for c files. Auto indent does work for rust, even though rust.lua and c.lua are the exact same. I have tried multiple combinations of re-installs/adding forum and ai recommended lua scripts (see at bottom), and nothing has worked. Does anyone here know of a fix?
My configs: https://github.com/Drivingh0me/yruac/tree/main/config/nvim_stable
nvim: 0.12.2 (Homebrew)
macOS: 26.5.1
Tried all combinations and both places (init.lua and after/ftplugin/c.lua) of:
vim.opt.smartindent = true/false
vim.opt.autoindent = true/fase
Tried adding lua to treesitter in init.lua to enable indent. Nothing is fixing the issue.
u/Drivingh0me — 4 days ago