Add vale language checking to neovim
This commit is contained in:
parent
28a741737d
commit
6ae0083b7c
2 changed files with 15 additions and 0 deletions
9
chezmoi/dot_vale.ini
Normal file
9
chezmoi/dot_vale.ini
Normal 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
|
|
@ -4,6 +4,12 @@ local cmp_lsp = require('cmp_nvim_lsp')
|
||||||
local null_ls = require("null-ls")
|
local null_ls = require("null-ls")
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
|
null_ls.setup({
|
||||||
|
sources = {
|
||||||
|
null_ls.builtins.diagnostics.vale,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- Use an on_attach function to only map the following keys
|
-- Use an on_attach function to only map the following keys
|
||||||
-- after the language server attaches to the current buffer
|
-- after the language server attaches to the current buffer
|
||||||
local on_attach = function(client, bufnr)
|
local on_attach = function(client, bufnr)
|
||||||
|
|
Loading…
Reference in a new issue