feat(core): configure markdown table mode for Markdown files
This commit is contained in:
1 parent
4bf79169f7
commit
eaa08d1c2f
1 file changed
+13
@@ -5,3 +5,16 @@
|
|||||||
-- snacks state icons/colors (see config.toggles). LSP-scoped keymaps live in
|
-- snacks state icons/colors (see config.toggles). LSP-scoped keymaps live in
|
||||||
-- plugins/astrolsp.lua, where astrolsp gates them on server capabilities.
|
-- plugins/astrolsp.lua, where astrolsp gates them on server capabilities.
|
||||||
require("config.toggles").setup()
|
require("config.toggles").setup()
|
||||||
|
|
||||||
|
require("markdown-table-mode").setup {
|
||||||
|
filetype = {
|
||||||
|
"*.md",
|
||||||
|
"*.mdx",
|
||||||
|
},
|
||||||
|
options = {
|
||||||
|
insert = true, -- when typing "|"
|
||||||
|
insert_leave = true, -- when leaving insert
|
||||||
|
pad_separator_line = false, -- add space in separator line
|
||||||
|
alig_style = "center", -- default, left, center, right
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in new issue
Block a user