summaryrefslogtreecommitdiff
path: root/utils/installer/config.example.lua
diff options
context:
space:
mode:
Diffstat (limited to 'utils/installer/config.example.lua')
-rw-r--r--utils/installer/config.example.lua37
1 files changed, 29 insertions, 8 deletions
diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua
index 897b2cf0..5f516f2f 100644
--- a/utils/installer/config.example.lua
+++ b/utils/installer/config.example.lua
@@ -78,6 +78,18 @@ lvim.builtin.treesitter.ignore_install = { "haskell" }
lvim.builtin.treesitter.highlight.enabled = true
-- generic LSP settings
+
+-- ---@usage disable automatic installation of servers
+-- lvim.lsp.automatic_servers_installation = false
+
+-- ---@usage Select which servers should be configured manually. Requires `:LvimCacheRest` to take effect.
+-- See the full default list `:lua print(vim.inspect(lvim.lsp.override))`
+-- vim.list_extend(lvim.lsp.override, { "pyright" })
+
+-- ---@usage setup a server -- see: https://www.lunarvim.org/languages/#overriding-the-default-configuration
+-- 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>
-- lvim.lsp.on_attach_callback = function(client, bufnr)
@@ -103,17 +115,26 @@ lvim.builtin.treesitter.highlight.enabled = true
-- end
-- end
--- set a formatter if you want to override the default lsp one (if it exists)
--- lvim.lang.python.formatters = {
+-- -- 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",
--- }
+-- exe = "prettier",
+-- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports.
+-- filetypes = { "typescript", "typescriptreact" },
+-- },
-- }
--- set an additional linter
--- lvim.lang.python.linters = {
+
+-- -- set additional linters
+-- local linters = require "lvim.lsp.null-ls.linters"
+-- linters.setup {
+-- { exe = "black" },
-- {
--- exe = "flake8",
--- }
+-- exe = "eslint_d",
+-- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports.
+-- filetypes = { "javascript", "javascriptreact" },
+-- },
-- }
-- Additional Plugins