diff options
| author | lukaswozniak <43893492+lukaswozniak@users.noreply.github.com> | 2022-11-26 01:57:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-26 08:57:09 +0800 |
| commit | ff7a604080342181ed86ccd886d2c4c567b964ba (patch) | |
| tree | 764f1ed71a85eaa0df76ad983b2c19c1eda35999 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-ff7a604080342181ed86ccd886d2c4c567b964ba.tar nvim-lspconfig-ff7a604080342181ed86ccd886d2c4c567b964ba.tar.gz nvim-lspconfig-ff7a604080342181ed86ccd886d2c4c567b964ba.tar.bz2 nvim-lspconfig-ff7a604080342181ed86ccd886d2c4c567b964ba.tar.lz nvim-lspconfig-ff7a604080342181ed86ccd886d2c4c567b964ba.tar.xz nvim-lspconfig-ff7a604080342181ed86ccd886d2c4c567b964ba.tar.zst nvim-lspconfig-ff7a604080342181ed86ccd886d2c4c567b964ba.zip | |
feat: add ntt language server support (#2256)
Co-authored-by: luwoznia <lukasz.wozniak@nokia.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/fennel-ls.lua | 4 | ||||
| -rw-r--r-- | lua/lspconfig/server_configurations/ntt.lua | 28 |
2 files changed, 30 insertions, 2 deletions
diff --git a/lua/lspconfig/server_configurations/fennel-ls.lua b/lua/lspconfig/server_configurations/fennel-ls.lua index 0d7fc392..f8030f90 100644 --- a/lua/lspconfig/server_configurations/fennel-ls.lua +++ b/lua/lspconfig/server_configurations/fennel-ls.lua @@ -5,7 +5,7 @@ return { cmd = { 'fennel-ls' }, filetypes = { 'fennel' }, root_dir = function(dir) - return util.find_git_ancestor(dir) + return util.find_git_ancestor(dir) end, settings = {}, }, @@ -14,6 +14,6 @@ return { https://sr.ht/~xerool/fennel-ls/ A language server for fennel. -]] , +]], }, } diff --git a/lua/lspconfig/server_configurations/ntt.lua b/lua/lspconfig/server_configurations/ntt.lua new file mode 100644 index 00000000..0f68a89d --- /dev/null +++ b/lua/lspconfig/server_configurations/ntt.lua @@ -0,0 +1,28 @@ +local util = require 'lspconfig.util' +local bin_name = 'ntt' + +return { + default_config = { + cmd = { bin_name, 'langserver' }, + filetypes = { 'ttcn' }, + root_dir = util.root_pattern '.git', + }, + docs = { + description = [[ +https://github.com/nokia/ntt +Installation instructions can be found [here](https://github.com/nokia/ntt#Install). +Can be configured by passing a "settings" object to `ntt.setup{}`: +```lua +require('lspconfig').ntt.setup{ + settings = { + ntt = { + } + } +} +``` +]], + default_config = { + root_dir = [[util.root_pattern(".git")]], + }, + }, +} |
