Skip to content

Commit

Permalink
add install instructions for lsp-config.nvim users
Browse files Browse the repository at this point in the history
  • Loading branch information
BrotifyPacha committed Jun 13, 2024
1 parent da866ff commit a21d5f5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@ Using [coc.nvim](https://github.com/neoclide/coc.nvim), add it to `:CocConfig`
}
```

Using [lsp-config.nvim](https://github.com/neovim/nvim-lspconfig)

```lua
-- first we need to configure our custom server
local configs = require('lspconfig.configs')
local util = require('lspconfig.util')

configs.pls = {
default_config = {
cmd = { 'path/to/pls' },
filetypes = { 'proto', 'cpp' },
root_fir = util.root_pattern('.git'),
single_file_support = true,
settings = {},
}
}

-- then we can continue as we do with official servers
local lspconfig = require('lspconfig')
lspconfig.pls.setup {}
```

if you use vscode, see [vscode-extension/README.md](./vscode-extension/README.md)

## features
Expand Down

0 comments on commit a21d5f5

Please sign in to comment.