Skip to main content
added 38 characters in body
Source Link
Vivian De Smedt
  • 21.2k
  • 5
  • 22
  • 40

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

You indent your code with tab (expandtab = false). You have configured Neovim to show tab as 2 space (tabstop = 2, shiftwidth = 2).

It seems that GitHub display tab as 7 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:

vim.o.expandtab = true

Convert tab into spaces run the following Vim command:

:retab

You indent your code with tab (expandtab = false). You have configured Neovim to show tab as 2 spaces (tabstop = 2, shiftwidth = 2).

It seems that GitHub display tab as 8 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 by running the following Vim command:

:retab
added 182 characters in body
Source Link
Vivian De Smedt
  • 21.2k
  • 5
  • 22
  • 40

You indent your code with tab (expandtab = false). You have configured Neovim to show tab as 2 space (tabstop = 2, shiftwidth = 2).

It seems that GitHub display tab as 7 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:

vim.o.expandtab = true

Convert tab into spaces run the following Vim command:

vim.o.tabstop = 8
vim.o.shiftwidth = 8:retab

You indent your code with tab (expandtab = false). You have configured Neovim to show tab as 2 space (tabstop = 2, shiftwidth = 2).

It seems that GitHub display tab as 7 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

You indent your code with tab (expandtab = false). You have configured Neovim to show tab as 2 space (tabstop = 2, shiftwidth = 2).

It seems that GitHub display tab as 7 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:

vim.o.expandtab = true

Convert tab into spaces run the following Vim command:

:retab
Source Link
Vivian De Smedt
  • 21.2k
  • 5
  • 22
  • 40

You indent your code with tab (expandtab = false). You have configured Neovim to show tab as 2 space (tabstop = 2, shiftwidth = 2).

It seems that GitHub display tab as 7 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