Fix markdown tabs

This commit is contained in:
gib
2026-04-15 20:00:57 -04:00
parent 065b7747cf
commit ef2d49fbaa
2 changed files with 22 additions and 1 deletions
+11
View File
@@ -29,6 +29,17 @@ autocmd({'BufWritePost'}, {
command = 'source <afile>',
})
autocmd('FileType', {
group = gib_group,
pattern = 'markdown',
callback = function()
vim.opt_local.tabstop = 2
vim.opt_local.softtabstop = 2
vim.opt_local.shiftwidth = 2
vim.opt_local.expandtab = true
end,
})
autocmd('LspAttach', {
group = gib_group,
callback = function(e)