From 3d838de15c786a7cce5592b8d0e67764706dd90a Mon Sep 17 00:00:00 2001 From: Adelar da Silva Queiróz Date: Sat, 6 May 2023 14:06:38 -0300 Subject: Add Neovim configuration description --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index c9f2464..2605fcd 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Language server for Odin. This project is still in early development. - [Vs Code](#vs-code) - [Sublime](#sublime) - [Vim](#vim) + - [Neovim](#neovim) - [Emacs](#emacs) ## Installation @@ -142,6 +143,18 @@ Configuration of the LSP: } ``` +### Neovim +Neovim has a builtin support for LSP. + +There is a plugin that turn easier the setup, called [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig). You can +install it with you prefered package manager. + +A simple configuration to use with Odin would be like this: +```lua +local lspconfig = require('lspconfig') +lspconfig.ols.setup({}) +``` + ### Emacs ``` ;; With odin-mode (https://github.com/mattt-b/odin-mode) and lsp-mode already added to your init.el of course!. -- cgit v1.2.3 From b670c85f67d8c559121d765be2460b4142a61a2c Mon Sep 17 00:00:00 2001 From: Adelar da Silva Queiróz Date: Sat, 6 May 2023 14:10:04 -0300 Subject: Little spelling fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2605fcd..032bd42 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Configuration of the LSP: ### Neovim Neovim has a builtin support for LSP. -There is a plugin that turn easier the setup, called [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig). You can +There is a plugin that turns easier the setup, called [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig). You can install it with you prefered package manager. A simple configuration to use with Odin would be like this: -- cgit v1.2.3