You indent your code with tab (expandtab = false
). You have configured Neovim to show tab as 2 spacespaces (tabstop = 2
, shiftwidth = 2
).
It seems that GitHub display tab as 78 spaces.
If you want to align both you can adapt your configuration to match GitHub and replace 2 by 8.
vim.o.tabstop = 8
vim.o.shiftwidth = 8
If you want to convert your text to use space instead you can:
Change your configuration:
vim.o.expandtab = true
Convert tab into spaces runby running the following Vim command:
:retab