summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/quick_lint_js.lua
diff options
context:
space:
mode:
Diffstat (limited to 'start/lspconfig-0.1.8/lua/lspconfig/server_configurations/quick_lint_js.lua')
-rw-r--r--start/lspconfig-0.1.8/lua/lspconfig/server_configurations/quick_lint_js.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/quick_lint_js.lua b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/quick_lint_js.lua
new file mode 100644
index 0000000..762a816
--- /dev/null
+++ b/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/quick_lint_js.lua
@@ -0,0 +1,19 @@
+local util = require 'lspconfig.util'
+
+return {
+ default_config = {
+ cmd = { 'quick-lint-js', '--lsp-server' },
+ filetypes = { 'javascript', 'typescript' },
+ root_dir = util.root_pattern('package.json', 'jsconfig.json', '.git'),
+ single_file_support = true,
+ },
+ docs = {
+ description = [[
+https://quick-lint-js.com/
+
+quick-lint-js finds bugs in JavaScript programs.
+
+See installation [instructions](https://quick-lint-js.com/install/)
+]],
+ },
+}