nvim: use tabs by default and use guess-indent.nvim to determine tabs vs spaces via statistics

This commit is contained in:
Tony Blyler 2024-10-04 10:06:21 -04:00
parent c447df45ca
commit 4321f6ff89
No known key found for this signature in database
2 changed files with 12 additions and 1 deletions
chezmoi/private_dot_config/nvim

View file

@ -37,7 +37,7 @@ end
now(function()
local opts = {
-- tabs look like 4 spaces {
expandtab = true,
expandtab = false, -- use tabs by default
tabstop = 4,
shiftwidth = 4,
softtabstop = 4,
@ -60,6 +60,16 @@ now(function()
end)
-- }}} vim options
-- {{{ automatically determine indentation via statistics
now(function()
add({
source = 'nmac427/guess-indent.nvim'
})
require('guess-indent').setup()
end)
-- }}}
-- {{{ color themes
now(function()
-- {{{ gruvbox