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.
This commit is contained in:
parent
51b484764d
commit
a4a51853e1
3 changed files with 3 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Uses [lazy.nvim][lazynvim] to manage plugins.
|
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?
|
## 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.
|
2. Run Neovim.
|
||||||
3. Wait for everything to install.
|
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
|
[lazynvim]: https://github.com/folke/lazy.nvim
|
||||||
[valeconfig]: https://vale.sh/docs/topics/config/#global-configuration
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ return {
|
||||||
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
|
events = { "BufWritePost", "BufReadPost", "InsertLeave" },
|
||||||
linters_by_ft = {
|
linters_by_ft = {
|
||||||
html = { "djlint" },
|
html = { "djlint" },
|
||||||
|
markdown = { "proselint" },
|
||||||
javascript = { "eslint" },
|
javascript = { "eslint" },
|
||||||
typescript = { "eslint" },
|
typescript = { "eslint" },
|
||||||
javascriptreact = { "eslint" },
|
javascriptreact = { "eslint" },
|
||||||
|
|
|
@ -13,7 +13,6 @@ return {
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"taplo", -- .toml
|
"taplo", -- .toml
|
||||||
"tsserver",
|
"tsserver",
|
||||||
"vale_ls",
|
|
||||||
"yamlls", -- .yml
|
"yamlls", -- .yml
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -24,8 +23,8 @@ return {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"djlint",
|
"djlint",
|
||||||
"prettierd",
|
"prettierd",
|
||||||
|
"proselint",
|
||||||
"stylua",
|
"stylua",
|
||||||
"vale", -- Vale CLI
|
|
||||||
},
|
},
|
||||||
auto_update = true,
|
auto_update = true,
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
|
@ -47,7 +46,6 @@ return {
|
||||||
lua_ls = {},
|
lua_ls = {},
|
||||||
taplo = {},
|
taplo = {},
|
||||||
tsserver = {},
|
tsserver = {},
|
||||||
vale_ls = {},
|
|
||||||
yamlls = {},
|
yamlls = {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue