Skip to content

Commit

Permalink
Merge 450dcf6 into d85c38b
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaniza authored May 29, 2023
2 parents d85c38b + 450dcf6 commit 3ae2b9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ For coc the extension for this language server (found [here](https://www.npmjs.c
To run the language server directly through the neovim lsp (assuming [neovim/nvim-lspconfig](https://github.com/neovim/nvim-lspconfig))

```sh
local lspconfig = require 'lspconfig'
local on_attach = require("plugins.configs.lspconfig").on_attach
local capabilities = require("plugins.configs.lspconfig").capabilities

local lspconfig = require "lspconfig"
local configs = require 'lspconfig.configs'

configs.solidity = {
default_config = {
on_attach = on_attach,
capabilities = capabilities,
cmd = {'nomicfoundation-solidity-language-server', '--stdio'},
filetypes = { 'solidity' },
root_dir = lspconfig.util.find_git_ancestor,
Expand Down

0 comments on commit 3ae2b9e

Please sign in to comment.