summaryrefslogtreecommitdiff
path: root/utils/installer/config.example.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2022-01-08 14:37:29 +0100
committerkylo252 <[email protected]>2022-01-08 14:37:29 +0100
commit8fe7cf2fac461b2136e815e3107b434cd407a09d (patch)
treedb7dc775de66458466e1293a4f426551aeef1273 /utils/installer/config.example.lua
parentd63d87c7ea7b0f7393a61714d2ed5682d0f4ca0c (diff)
parentfc043d738b0a10a0941515a86a2af54a21654986 (diff)
Merge branch 'rolling'
Diffstat (limited to 'utils/installer/config.example.lua')
-rw-r--r--utils/installer/config.example.lua35
1 files changed, 12 insertions, 23 deletions
diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua
index e3d9fa23..e209e7af 100644
--- a/utils/installer/config.example.lua
+++ b/utils/installer/config.example.lua
@@ -91,8 +91,8 @@ lvim.builtin.treesitter.highlight.enabled = true
-- local opts = {} -- check the lspconfig documentation for a list of all possible options
-- require("lvim.lsp.manager").setup("pylsp", opts)
--- you can set a custom on_attach function that will be used for all the language servers
--- See <https://github.com/neovim/nvim-lspconfig#keybindings-and-completion>
+-- -- you can set a custom on_attach function that will be used for all the language servers
+-- -- See <https://github.com/neovim/nvim-lspconfig#keybindings-and-completion>
-- lvim.lsp.on_attach_callback = function(client, bufnr)
-- local function buf_set_option(...)
-- vim.api.nvim_buf_set_option(bufnr, ...)
@@ -100,30 +100,18 @@ lvim.builtin.treesitter.highlight.enabled = true
-- --Enable completion triggered by <c-x><c-o>
-- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
-- end
--- you can overwrite the null_ls setup table (useful for setting the root_dir function)
--- lvim.lsp.null_ls.setup.root_dir = require("lspconfig").util.root_pattern("Makefile", ".git", "node_modules")
--- or if you need something more advanced
--- lvim.lsp.null_ls.setup.root_dir = function(fname)
--- if vim.bo.filetype == "javascript" then
--- return require("lspconfig/util").root_pattern("Makefile", ".git", "node_modules")(fname)
--- or require("lspconfig/util").path.dirname(fname)
--- elseif vim.bo.filetype == "php" then
--- return require("lspconfig/util").root_pattern("Makefile", ".git", "composer.json")(fname) or vim.fn.getcwd()
--- else
--- return require("lspconfig/util").root_pattern("Makefile", ".git")(fname) or require("lspconfig/util").path.dirname(fname)
--- end
--- end
-- -- 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", filetypes = { "python" } },
--- { exe = "isort", filetypes = { "python" } },
+-- { command = "black", filetypes = { "python" } },
+-- { command = "isort", filetypes = { "python" } },
-- {
--- exe = "prettier",
+-- -- each formatter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration
+-- command = "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" },
+-- extra_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" },
-- },
@@ -132,15 +120,16 @@ lvim.builtin.treesitter.highlight.enabled = true
-- -- set additional linters
-- local linters = require "lvim.lsp.null-ls.linters"
-- linters.setup {
--- { exe = "flake8", filetypes = { "python" } },
+-- { command = "flake8", filetypes = { "python" } },
-- {
--- exe = "shellcheck",
+-- -- each linter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration
+-- command = "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" },
+-- extra_args = { "--severity", "warning" },
-- },
-- {
--- exe = "codespell",
+-- command = "codespell",
-- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports.
-- filetypes = { "javascript", "python" },
-- },