diff options
author | kylo252 <[email protected]> | 2022-04-14 21:24:35 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-04-14 21:24:35 +0200 |
commit | 6d2e18295f510c2f2167bd911b0d421a3b7f112e (patch) | |
tree | 453d5be502febdf596bf4b60b2d982b8b94db44a /utils/installer/config.example.lua | |
parent | f92a0d610c1ee899ec8acb091130f2a5eec22812 (diff) | |
parent | 09684eff642eb455bffda3100f29ef182f734a82 (diff) |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'utils/installer/config.example.lua')
-rw-r--r-- | utils/installer/config.example.lua | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index 409235a5..61c2f915 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -85,13 +85,17 @@ lvim.builtin.treesitter.highlight.enabled = true -- ---@usage disable automatic installation of servers -- lvim.lsp.automatic_servers_installation = false --- ---@usage Select which servers should be configured manually. Requires `:LvimCacheReset` 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 +-- ---configure a server manually. !!Requires `:LvimCacheReset` to take effect!! +-- ---see the full default list `:lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers))` +-- vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pyright" }) -- local opts = {} -- check the lspconfig documentation for a list of all possible options --- require("lvim.lsp.manager").setup("pylsp", opts) +-- require("lvim.lsp.manager").setup("pyright", opts) + +-- ---remove a server from the skipped list, e.g. eslint, or emmet_ls. !!Requires `:LvimCacheReset` to take effect!! +-- ---`:LvimInfo` lists which server(s) are skiipped for the current filetype +-- vim.tbl_map(function(server) +-- return server ~= "emmet_ls" +-- end, lvim.lsp.automatic_configuration.skipped_servers) -- -- 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> |