diff options
| author | William Boman <william@redwill.se> | 2021-08-14 23:19:23 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-08-15 00:47:15 +0200 |
| commit | d8f4f30463fcfc4b8b60811dbe195aba86917966 (patch) | |
| tree | c6a004cb1a08921184f7b5d85721e9144f20aa00 /lua/nvim-lsp-installer/servers/angularls/init.lua | |
| parent | add `env` option to shell.raw, and other cosmetic improvements (diff) | |
| download | mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.gz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.bz2 mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.lz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.xz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.zst mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.zip | |
stylua
Diffstat (limited to 'lua/nvim-lsp-installer/servers/angularls/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/angularls/init.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lua/nvim-lsp-installer/servers/angularls/init.lua b/lua/nvim-lsp-installer/servers/angularls/init.lua index 14cde314..8de5b29f 100644 --- a/lua/nvim-lsp-installer/servers/angularls/init.lua +++ b/lua/nvim-lsp-installer/servers/angularls/init.lua @@ -1,19 +1,19 @@ -local util = require("lspconfig/util") -local server = require("nvim-lsp-installer.server") -local npm = require("nvim-lsp-installer.installers.npm") +local util = require "lspconfig/util" +local server = require "nvim-lsp-installer.server" +local npm = require "nvim-lsp-installer.installers.npm" -- Angular requires a node_modules directory to probe for @angular/language-service and typescript -- in order to use your projects configured versions. -- This defaults to the vim cwd, but will get overwritten by the resolved root of the file. local function get_probe_dir(root_dir) - local project_root = util.find_node_modules_ancestor(root_dir) + local project_root = util.find_node_modules_ancestor(root_dir) - return project_root and (project_root .. "/node_modules") or "" + return project_root and (project_root .. "/node_modules") or "" end local default_probe_dir = get_probe_dir(vim.fn.getcwd()) -local root_dir = server.get_server_root_path("angularls") +local root_dir = server.get_server_root_path "angularls" local executable_path = npm.executable(root_dir, "ngserver") |
