We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 314b353 commit 83ca14fCopy full SHA for 83ca14f
lsp/vb_ls.lua
@@ -0,0 +1,23 @@
1
+---@brief
2
+---
3
+--- https://github.com/CoolCoderSuper/visualbasic-language-server
4
5
+--- Language Server for VB.NET.
6
7
+--- vb-ls requires the [dotnet-sdk](https://dotnet.microsoft.com/download) to be installed.
8
9
+--- The preferred way to install vb-ls is with `dotnet tool install --global vb-ls`.
10
+
11
+local util = require 'lspconfig.util'
12
13
+return {
14
+ cmd = { 'vb-ls' },
15
+ root_dir = function(bufnr, on_dir)
16
+ local fname = vim.api.nvim_buf_get_name(bufnr)
17
+ on_dir(util.root_pattern '*.sln'(fname) or util.root_pattern '*.vbproj'(fname) or util.root_pattern '*.slnx'(fname))
18
+ end,
19
+ filetypes = { 'vbnet' },
20
+ init_options = {
21
+ AutomaticWorkspaceInit = true,
22
+ },
23
+}
0 commit comments