diff options
author | christianchiarulli <[email protected]> | 2021-07-06 12:28:50 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-06 12:28:50 -0400 |
commit | f22e1bd8cb6a38fdcad83b96d7739af778cd9d1d (patch) | |
tree | dbd52ee15583f746f21e5eae157e546388ee206d /ftplugin | |
parent | 20485971641a9d916640ccad05586a641c984ed6 (diff) | |
parent | 68bfac0468ea4d5d7faf5bede0a4ab8cb5572f0c (diff) |
cleanup and stability improvements0.4.1
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/cs.lua | 6 | ||||
-rw-r--r-- | ftplugin/vue.lua | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ftplugin/cs.lua b/ftplugin/cs.lua new file mode 100644 index 00000000..7fdbbc66 --- /dev/null +++ b/ftplugin/cs.lua @@ -0,0 +1,6 @@ +-- C# language server (csharp/OmniSharp) setup +require("lspconfig").omnisharp.setup{ + on_attach = require("lsp").common_on_attach, + root_dir = require("lspconfig").util.root_pattern(".sln",".git"), + cmd = { DATA_PATH .. "/lspinstall/csharp/omnisharp/run", "--languageserver", "--hostPID", tostring(vim.fn.getpid()) }, +} diff --git a/ftplugin/vue.lua b/ftplugin/vue.lua index 6787d12f..ff44d761 100644 --- a/ftplugin/vue.lua +++ b/ftplugin/vue.lua @@ -1,5 +1,6 @@ +-- Vue language server configuration (vetur) require("lspconfig").vuels.setup { cmd = { DATA_PATH .. "/lspinstall/vue/node_modules/.bin/vls", "--stdio" }, on_attach = require("lsp").common_on_attach, - root_dir = require("lspconfig").util.root_pattern(".git", "."), + root_dir = require("lspconfig").util.root_pattern(".git", "vue.config.js", "package.json", "yarn.lock"), } |