diff --git a/lua/configs/conform.lua b/lua/configs/conform.lua index 35ba6cf..7f04e8b 100644 --- a/lua/configs/conform.lua +++ b/lua/configs/conform.lua @@ -1,15 +1,16 @@ local options = { formatters_by_ft = { lua = { "stylua" }, - -- css = { "prettier" }, - -- html = { "prettier" }, + css = { "prettier" }, + html = { "prettier" }, + python = { "ruff" }, }, - -- format_on_save = { - -- -- These options will be passed to conform.format() - -- timeout_ms = 500, - -- lsp_fallback = true, - -- }, + format_on_save = { + -- These options will be passed to conform.format() + timeout_ms = 500, + lsp_fallback = true, + }, } return options diff --git a/lua/configs/render-markdown.lua b/lua/configs/render-markdown.lua new file mode 100644 index 0000000..c669e22 --- /dev/null +++ b/lua/configs/render-markdown.lua @@ -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', + }, +} diff --git a/lua/options.lua b/lua/options.lua index 738f20b..ad34c19 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,5 +1,7 @@ require "nvchad.options" +vim.opt.spelllang = fr +vim.opt.spell =true -- add yours here! -- local o = vim.o diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 3a7c7e3..a1767ff 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -48,8 +48,10 @@ return { "go", "rust", "python", - "tsx" + "tsx", + "markdown" }, + highlight = { enable = true }, }, }, @@ -81,5 +83,13 @@ return { { "lg", "LazyGit", 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, + }, }