Fix markdown tabs
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user