From 5f22c1bace8b5e77d33d4a8cf5ebe6c1a763f0d8 Mon Sep 17 00:00:00 2001 From: Biser Stoilov Date: Tue, 30 Mar 2021 09:17:40 +0300 Subject: Define shell + php lsp + dart lsp + flutter + relative number (#188) --- lua/lsp/dart-ls.lua | 11 +++++++++++ lua/lsp/php-ls.lua | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 lua/lsp/dart-ls.lua create mode 100644 lua/lsp/php-ls.lua (limited to 'lua/lsp') diff --git a/lua/lsp/dart-ls.lua b/lua/lsp/dart-ls.lua new file mode 100644 index 00000000..99f41311 --- /dev/null +++ b/lua/lsp/dart-ls.lua @@ -0,0 +1,11 @@ +require'lspconfig'.dartls.setup{ + cmd = { "dart", O.dart.sdk_path, "--lsp" }, + on_attach = require'lsp'.common_on_attach, + init_options = { + closingLabels = false, + flutterOutline = false, + onlyAnalyzeProjectsWithOpenFiles = false, + outline = false, + suggestFromUnimportedLibraries = true + } +} \ No newline at end of file diff --git a/lua/lsp/php-ls.lua b/lua/lsp/php-ls.lua new file mode 100644 index 00000000..abc90092 --- /dev/null +++ b/lua/lsp/php-ls.lua @@ -0,0 +1,4 @@ +require'lspconfig'.intelephense.setup { + cmd = { DATA_PATH .. "/lspinstall/php/node_modules/.bin/intelephense", "--stdio" }, + on_attach = require'lsp'.common_on_attach +} \ No newline at end of file -- cgit v1.2.3