summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-10-24 12:56:56 +0200
committerGitHub <[email protected]>2021-10-24 12:56:56 +0200
commitefe30f26a7c5a927c24cec17d23bef3bea5114ee (patch)
treea63ce02c240d2d57da47bd741f794ed87da06981 /README.md
parent674588a375ce354e77dc6ced858e7c5efcbf67d9 (diff)
chore: update docs to reflect recent changes (#1841)
Diffstat (limited to 'README.md')
-rw-r--r--README.md32
1 files changed, 21 insertions, 11 deletions
diff --git a/README.md b/README.md
index 14cb1267..f9fff01b 100644
--- a/README.md
+++ b/README.md
@@ -79,19 +79,30 @@ lvim.builtin.treesitter.ignore_install = { "haskell" }
-- Disable virtual text
lvim.lsp.diagnostics.virtual_text = false
--- set a formatter if you want to override the default lsp one (if it exists)
-lvim.lang.python.formatters = {
+-- 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" })
+
+-- 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",
- args = {}
- }
+ 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",
- args = {}
- }
+ exe = "eslint_d",
+ ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports.
+ filetypes = { "javascript", "javascriptreact" },
+ },
}
@@ -118,7 +129,6 @@ lvim.plugins = {
## Breaking changes
- `lvim.lang.FOO.lsp` is no longer supported after #1584.
- You can either use `:NlspConfig` for most of the settings you might need, or override the setup by adding an entry to `lvim.lsp.override = { "FOO" }`.
## Resources