Add spell checking for french and markdown preview
parent
2a48e84054
commit
e5bdddc7cb
|
@ -1,15 +1,16 @@
|
||||||
local options = {
|
local options = {
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
-- css = { "prettier" },
|
css = { "prettier" },
|
||||||
-- html = { "prettier" },
|
html = { "prettier" },
|
||||||
|
python = { "ruff" },
|
||||||
},
|
},
|
||||||
|
|
||||||
-- format_on_save = {
|
format_on_save = {
|
||||||
-- -- These options will be passed to conform.format()
|
-- These options will be passed to conform.format()
|
||||||
-- timeout_ms = 500,
|
timeout_ms = 500,
|
||||||
-- lsp_fallback = true,
|
lsp_fallback = true,
|
||||||
-- },
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
return {
|
||||||
|
enabled = true,
|
||||||
|
anti_conceal = {
|
||||||
|
enabled = true,
|
||||||
|
-- Which elements to always show, ignoring anti conceal behavior. Values can either be
|
||||||
|
-- booleans to fix the behavior or string lists representing modes where anti conceal
|
||||||
|
-- behavior will be ignored. Valid values are:
|
||||||
|
-- head_icon, head_background, head_border, code_language, code_background, code_border,
|
||||||
|
-- dash, bullet, check_icon, check_scope, quote, table_border, callout, link, sign
|
||||||
|
ignore = {
|
||||||
|
code_background = true,
|
||||||
|
sign = true,
|
||||||
|
},
|
||||||
|
above = 0,
|
||||||
|
below = 0,
|
||||||
|
},
|
||||||
|
render_modes = true,
|
||||||
|
bullets = { "•", "◦", "▪" },
|
||||||
|
quote = "┃",
|
||||||
|
code = {
|
||||||
|
width = 'block',
|
||||||
|
min_width = 45,
|
||||||
|
left_pad = 2,
|
||||||
|
language_pad = 2,
|
||||||
|
},
|
||||||
|
sign = {
|
||||||
|
enabled = true,
|
||||||
|
highlight = 'RenderMarkdownSign',
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,5 +1,7 @@
|
||||||
require "nvchad.options"
|
require "nvchad.options"
|
||||||
|
|
||||||
|
vim.opt.spelllang = fr
|
||||||
|
vim.opt.spell =true
|
||||||
-- add yours here!
|
-- add yours here!
|
||||||
|
|
||||||
-- local o = vim.o
|
-- local o = vim.o
|
||||||
|
|
|
@ -48,8 +48,10 @@ return {
|
||||||
"go",
|
"go",
|
||||||
"rust",
|
"rust",
|
||||||
"python",
|
"python",
|
||||||
"tsx"
|
"tsx",
|
||||||
|
"markdown"
|
||||||
},
|
},
|
||||||
|
highlight = { enable = true },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -81,5 +83,13 @@ return {
|
||||||
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
{ "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'MeanderingProgrammer/render-markdown.nvim',
|
||||||
|
ft = {"markdown"},
|
||||||
|
dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite
|
||||||
|
config = function()
|
||||||
|
local opts = require("configs.render-markdown")
|
||||||
|
require("render-markdown").setup(opts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue