Fix markdown tabs

This commit is contained in:
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)
+11 -1
View File
@@ -269,7 +269,7 @@ return {
'svelte',
'tailwindcss',
'tinymist',
'vtsls',
--'vtsls',
'yamlls',
},
handlers = {
@@ -308,6 +308,11 @@ return {
typescript = {
updateImportsOnFileMove = { enabled = 'always' },
suggest = { completeFunctionCalls = true },
format = {
indentSize = 2,
tabSize = 2,
convertTabsToSpaces = true,
},
preferences = {
importModuleSpecifier = 'non-relative',
includePackageJsonAutoImports = 'auto',
@@ -324,6 +329,11 @@ return {
javascript = {
updateImportsOnFileMove = { enabled = 'always' },
suggest = { completeFunctionCalls = true },
format = {
indentSize = 2,
tabSize = 2,
convertTabsToSpaces = true,
},
inlayHints = {
parameterNames = { enabled = 'literals' },
parameterTypes = { enabled = true },