Add vale language checking to neovim

This commit is contained in:
Tony Blyler 2022-05-27 14:47:19 -04:00
parent 28a741737d
commit 6ae0083b7c
2 changed files with 15 additions and 0 deletions

9
chezmoi/dot_vale.ini Normal file
View file

@ -0,0 +1,9 @@
StylesPath = styles
MinAlertLevel = suggestion
Vocab = Base
Packages = Google, proselint, write-good, alex, Readability, Joblint
[*]
BasedOnStyles = Vale, Google, proselint, write-good, alex, Readability, Joblint

View file

@ -4,6 +4,12 @@ local cmp_lsp = require('cmp_nvim_lsp')
local null_ls = require("null-ls")
local lspconfig = require("lspconfig")
null_ls.setup({
sources = {
null_ls.builtins.diagnostics.vale,
},
})
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = function(client, bufnr)