aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorSeth Messer <3678+megalithic@users.noreply.github.com>2024-05-17 02:07:28 -0400
committerGitHub <noreply@github.com>2024-05-17 14:07:28 +0800
commitb3fc67c63ebb209f3e6f72718b9360aef2c0c027 (patch)
treed7691c9811b5a72977d7cf5b933a79eeeca6a177 /lua
parentrefactor: add compatible tbl_flatten and lsp_get_clients for new version 0.10... (diff)
downloadnvim-lspconfig-b3fc67c63ebb209f3e6f72718b9360aef2c0c027.tar
nvim-lspconfig-b3fc67c63ebb209f3e6f72718b9360aef2c0c027.tar.gz
nvim-lspconfig-b3fc67c63ebb209f3e6f72718b9360aef2c0c027.tar.bz2
nvim-lspconfig-b3fc67c63ebb209f3e6f72718b9360aef2c0c027.tar.lz
nvim-lspconfig-b3fc67c63ebb209f3e6f72718b9360aef2c0c027.tar.xz
nvim-lspconfig-b3fc67c63ebb209f3e6f72718b9360aef2c0c027.tar.zst
nvim-lspconfig-b3fc67c63ebb209f3e6f72718b9360aef2c0c027.zip
feat: adds next-ls server configuration (#3155)
* feat: adds next-ls server configuration * docs: update server_configurations.md skip-checks: true * fix: assumes nextls is installed and on $PATH * docs: update server_configurations.md skip-checks: true * fix: updates root_dir method * docs: update server_configurations.md skip-checks: true --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/nextls.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/nextls.lua b/lua/lspconfig/server_configurations/nextls.lua
new file mode 100644
index 00000000..acecaf76
--- /dev/null
+++ b/lua/lspconfig/server_configurations/nextls.lua
@@ -0,0 +1,18 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ filetypes = { 'elixir', 'eelixir', 'heex', 'surface' },
+ root_dir = function(fname)
+ return util.root_pattern 'mix.exs'(fname) or util.find_git_ancestor(fname)
+ end,
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://github.com/elixir-tools/next-ls
+
+**By default, next-ls does not set its `cmd`. Please see the following [detailed instructions](https://www.elixir-tools.dev/docs/next-ls/installation/) for possible installation methods.**
+]],
+ },
+}