diff options
| author | Andreas Stallinger <astallinger@gmail.com> | 2022-03-01 19:59:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-01 10:59:42 -0800 |
| commit | e6297591597fd6c42782539daa1bf901e05cf467 (patch) | |
| tree | b751a608218173298254af6b2a5acac5bb68a503 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-e6297591597fd6c42782539daa1bf901e05cf467.tar nvim-lspconfig-e6297591597fd6c42782539daa1bf901e05cf467.tar.gz nvim-lspconfig-e6297591597fd6c42782539daa1bf901e05cf467.tar.bz2 nvim-lspconfig-e6297591597fd6c42782539daa1bf901e05cf467.tar.lz nvim-lspconfig-e6297591597fd6c42782539daa1bf901e05cf467.tar.xz nvim-lspconfig-e6297591597fd6c42782539daa1bf901e05cf467.tar.zst nvim-lspconfig-e6297591597fd6c42782539daa1bf901e05cf467.zip | |
feat: add odin language server support (#1747)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/ols.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/ols.lua b/lua/lspconfig/server_configurations/ols.lua new file mode 100644 index 00000000..65dd085c --- /dev/null +++ b/lua/lspconfig/server_configurations/ols.lua @@ -0,0 +1,20 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'ols' }, + filetypes = { 'odin' }, + root_dir = util.root_pattern('ols.json', '.git'), + single_file_support = true, + }, + docs = { + description = [[ + https://github.com/DanielGavin/ols + + `Odin Language Server`. + ]], + default_config = { + root_dir = [[util.root_pattern("ols.json", ".git")]], + }, + }, +} |
