nvim: use tabs by default and use guess-indent.nvim
to determine tabs vs spaces via statistics
This commit is contained in:
parent
c447df45ca
commit
4321f6ff89
2 changed files with 12 additions and 1 deletions
|
@ -37,7 +37,7 @@ end
|
||||||
now(function()
|
now(function()
|
||||||
local opts = {
|
local opts = {
|
||||||
-- tabs look like 4 spaces {
|
-- tabs look like 4 spaces {
|
||||||
expandtab = true,
|
expandtab = false, -- use tabs by default
|
||||||
tabstop = 4,
|
tabstop = 4,
|
||||||
shiftwidth = 4,
|
shiftwidth = 4,
|
||||||
softtabstop = 4,
|
softtabstop = 4,
|
||||||
|
@ -60,6 +60,16 @@ now(function()
|
||||||
end)
|
end)
|
||||||
-- }}} vim options
|
-- }}} vim options
|
||||||
|
|
||||||
|
-- {{{ automatically determine indentation via statistics
|
||||||
|
now(function()
|
||||||
|
add({
|
||||||
|
source = 'nmac427/guess-indent.nvim'
|
||||||
|
})
|
||||||
|
|
||||||
|
require('guess-indent').setup()
|
||||||
|
end)
|
||||||
|
-- }}}
|
||||||
|
|
||||||
-- {{{ color themes
|
-- {{{ color themes
|
||||||
now(function()
|
now(function()
|
||||||
-- {{{ gruvbox
|
-- {{{ gruvbox
|
||||||
|
|
|
@ -2,6 +2,7 @@ return {
|
||||||
["dracula-pro.vim.git"] = "f4c019956a9fc9054ffc02553920519e3beadc21",
|
["dracula-pro.vim.git"] = "f4c019956a9fc9054ffc02553920519e3beadc21",
|
||||||
["gitsigns.nvim"] = "863903631e676b33e8be2acb17512fdc1b80b4fb",
|
["gitsigns.nvim"] = "863903631e676b33e8be2acb17512fdc1b80b4fb",
|
||||||
["gruvbox.nvim"] = "7a1b23e4edf73a39642e77508ee6b9cbb8c60f9e",
|
["gruvbox.nvim"] = "7a1b23e4edf73a39642e77508ee6b9cbb8c60f9e",
|
||||||
|
["guess-indent.nvim"] = "6cd61f7a600bb756e558627cd2e740302c58e32d",
|
||||||
["indent-blankline.nvim"] = "18603eb949eba08300799f64027af11ef922283f",
|
["indent-blankline.nvim"] = "18603eb949eba08300799f64027af11ef922283f",
|
||||||
["mason-lspconfig.nvim"] = "25c11854aa25558ee6c03432edfa0df0217324be",
|
["mason-lspconfig.nvim"] = "25c11854aa25558ee6c03432edfa0df0217324be",
|
||||||
["mason.nvim"] = "e2f7f9044ec30067bc11800a9e266664b88cda22",
|
["mason.nvim"] = "e2f7f9044ec30067bc11800a9e266664b88cda22",
|
||||||
|
|
Loading…
Reference in a new issue