Skip to content

Commit 83ca14f

Browse files
feat: vb_ls
1 parent 314b353 commit 83ca14f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

lsp/vb_ls.lua

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)