From 9348e9c4be4f20d9ed5d30ba984cbd94b1c28b3e Mon Sep 17 00:00:00 2001 From: dakshinatharindu Date: Sat, 15 Jun 2024 20:33:38 +0530 Subject: [PATCH] add configurations for nvim-lspconfig --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 2fdc373..2e97d48 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,26 @@ In configuration file } ``` +### Neovim with [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) + +In configuration file +```lua +{ + "neovim/nvim-lspconfig", + opts = { + servers = { + svls = { + root_dir = function(fname) + return require("lspconfig.util").find_git_ancestor(fname) + end, + cmd = { "svls" }, + filetypes = { "verilog", "systemverilog" }, + }, + }, + }, +} +``` + ### Emacs with [lsp-mode](https://github.com/emacs-lsp/lsp-mode) ```emacs-lisp