From 5bab22da4a4386fa57182e9e7774ebdd2422661c Mon Sep 17 00:00:00 2001 From: RazaGR <30994076+RazaGR@users.noreply.github.com> Date: Sat, 23 Sep 2023 15:15:40 +0200 Subject: [PATCH] Add neovim configuration to docs (#3400) * add neovim configuration doc add neovim configuration documentation to setup with lazy.vim plugin. * prettier --------- Co-authored-by: Muhammad Hamza --- website/docs/getting-started/editor-setup.mdx | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/website/docs/getting-started/editor-setup.mdx b/website/docs/getting-started/editor-setup.mdx index c97a38a7f47..241d12e5f60 100644 --- a/website/docs/getting-started/editor-setup.mdx +++ b/website/docs/getting-started/editor-setup.mdx @@ -137,3 +137,24 @@ Emmet support should work out of the box, if not please fall back to edditing th "rust": "html", } ``` + +### Neovim + +#### Lazyvim + +> Below configuration works with [LazyVim](https://www.lazyvim.org) configuration and lazy.vim plugin, create a file in `lua/plugins/nvim-lspconfig.lua` (or update your `lspconfig`) with: + +```json +return { + { + "neovim/nvim-lspconfig", + init_options = { + userLanguages = { + eelixir = "html-eex", + eruby = "erb", + rust = "html", + }, + }, + }, +} +```