Add markdown linting commands and update keymaps
- Introduced commands to enable/disable automatic markdown linting. - Updated keymaps to reflect changes in markdown linting behavior.
This commit is contained in:
parent
8c9f117320
commit
c9a7b3b694
3 changed files with 32 additions and 5 deletions
|
|
@ -52,7 +52,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||
end,
|
||||
})
|
||||
|
||||
-- Markdown: Prettier defaults (2 spaces)
|
||||
-- Markdown: Prettier defaults (2 spaces) + spellcheck
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
group = aug,
|
||||
pattern = "markdown",
|
||||
|
|
@ -61,6 +61,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||
vim.opt_local.tabstop = 2 -- Display as 2 spaces
|
||||
vim.opt_local.shiftwidth = 2 -- Indent by 2
|
||||
vim.opt_local.softtabstop = 2
|
||||
vim.opt_local.spell = true -- Enable spellcheck for markdown
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue