From a4a51853e15f1cfdb25297b2f76f791aad07b6ac Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Fri, 7 Jun 2024 15:30:20 -0700 Subject: [PATCH] feat: add proselint This also removes vale from my config. I was annoyed at how much setup vale needed before it could work, and find that proselint does what I want without the extras of vale. --- README.md | 7 +------ lua/plugins/linting.lua | 1 + lua/plugins/lsp.lua | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 164cd2b..ff6f2a2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Uses [lazy.nvim][lazynvim] to manage plugins. -It's pretty opinionated. You might not like it. +It's opinionated. You might not like it. ## Who is this geared for? @@ -16,9 +16,4 @@ I've also added some plugins for writing in Markdown as I prefer it. 2. Run Neovim. 3. Wait for everything to install. -# Post Installation - -- `vale` requires a configuration file to work. [Make sure one is present][valeconfig]. You may also need to run `vale sync` after adding it (if installed using Mason, make sure to run the binary installed by Mason and not the global one, if present). - [lazynvim]: https://github.com/folke/lazy.nvim -[valeconfig]: https://vale.sh/docs/topics/config/#global-configuration diff --git a/lua/plugins/linting.lua b/lua/plugins/linting.lua index 41239a5..f441d4d 100644 --- a/lua/plugins/linting.lua +++ b/lua/plugins/linting.lua @@ -5,6 +5,7 @@ return { events = { "BufWritePost", "BufReadPost", "InsertLeave" }, linters_by_ft = { html = { "djlint" }, + markdown = { "proselint" }, javascript = { "eslint" }, typescript = { "eslint" }, javascriptreact = { "eslint" }, diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index a8a7799..c34003c 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -13,7 +13,6 @@ return { "lua_ls", "taplo", -- .toml "tsserver", - "vale_ls", "yamlls", -- .yml }, }, @@ -24,8 +23,8 @@ return { ensure_installed = { "djlint", "prettierd", + "proselint", "stylua", - "vale", -- Vale CLI }, auto_update = true, automatic_installation = true, @@ -47,7 +46,6 @@ return { lua_ls = {}, taplo = {}, tsserver = {}, - vale_ls = {}, yamlls = {}, }, },