From 3cd9e4c982f2fed94d45896287cedaecb72d684f Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Sat, 6 Nov 2021 18:22:24 +0000 Subject: chore: pin cmp related plugins (#1917) --- utils/installer/config.example.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'utils/installer') diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index 5f516f2f..8f124ad3 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -118,9 +118,13 @@ lvim.builtin.treesitter.highlight.enabled = true -- -- set a formatter, this will override the language server formatting capabilities (if it exists) -- local formatters = require "lvim.lsp.null-ls.formatters" -- formatters.setup { --- { exe = "black" }, +-- { exe = "black", filetypes = { "python" } }, +-- { exe = "isort", filetypes = { "python" } }, -- { -- exe = "prettier", +-- ---@usage arguments to pass to the formatter +-- -- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}` +-- args = { "--print-with", "100" }, -- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports. -- filetypes = { "typescript", "typescriptreact" }, -- }, @@ -129,11 +133,17 @@ lvim.builtin.treesitter.highlight.enabled = true -- -- set additional linters -- local linters = require "lvim.lsp.null-ls.linters" -- linters.setup { --- { exe = "black" }, +-- { exe = "flake8", filetypes = { "python" } }, -- { --- exe = "eslint_d", +-- exe = "shellcheck", +-- ---@usage arguments to pass to the formatter +-- -- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}` +-- args = { "--severity", "warning" }, +-- }, +-- { +-- exe = "codespell", -- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports. --- filetypes = { "javascript", "javascriptreact" }, +-- filetypes = { "javascript", "python" }, -- }, -- } -- cgit v1.2.3