From 6ae0083b7caa0360f6ab52a935d9a102274eab8c Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Fri, 27 May 2022 14:47:19 -0400 Subject: [PATCH] Add vale language checking to neovim --- chezmoi/dot_vale.ini | 9 +++++++++ .../nvim/lua/plugins/config/lspinstall.lua | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 chezmoi/dot_vale.ini diff --git a/chezmoi/dot_vale.ini b/chezmoi/dot_vale.ini new file mode 100644 index 0000000..0922530 --- /dev/null +++ b/chezmoi/dot_vale.ini @@ -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 diff --git a/chezmoi/private_dot_config/nvim/lua/plugins/config/lspinstall.lua b/chezmoi/private_dot_config/nvim/lua/plugins/config/lspinstall.lua index ae9b136..9516452 100644 --- a/chezmoi/private_dot_config/nvim/lua/plugins/config/lspinstall.lua +++ b/chezmoi/private_dot_config/nvim/lua/plugins/config/lspinstall.lua @@ -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)