Skip to content

Added lsp for V programming language #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,37 @@
"lsp": {}, "nodejs": {}
}
},{
"id": "lsp_v",
"description": "Automatic configuration/binary download for LSP completion for v with v-lsp.",
"path": "plugins/lsp_v.lua",
"version": "0.0.4",
"files": [
{
"url": "https://github.com/vlang/v-analyzer/releases/download/0.0.4-beta.1/v-analyzer-linux-x86_64.zip",
"arch": "x86_64-linux",
"checksum": "25be4134b51ca747f132f16c64cdba49960757933899116f73adcbf764a13125"
},
{
"url": "https://github.com/vlang/v-analyzer/releases/download/0.0.4-beta.1/v-analyzer-darwin-arm64.zip",
"arch": "aarch64-darwin",
"checksum": "af7ae07c3681935afaf7a9dc3573765d05b71dc96cbd97dfb0c2fca1aedb6531"
},
{
"url": "https://github.com/vlang/v-analyzer/releases/download/0.0.4-beta.1/v-analyzer-darwin-x86_64.zip",
"arch": "x86_64-darwin",
"checksum": "9d87e2fb46aef2bdf7b9922842862fc4c22a495cd438c5510cee18b8c8f87f2b"
},
{
"url": "https://github.com/vlang/v-analyzer/releases/download/0.0.4-beta.1/v-analyzer-windows-x86_64.zip",
"arch": "x86_64-windows",
"checksum": "bd576a496f7848970b1361339bebe46e0eca1e075287571a467880211ab43ba1"
}
],
"dependencies": {
"language_v": {},
"lsp": {}
}
},{
"id": "lsp_zig",
"description": "Automatic configuration/binary download for LSP completion for Zig via zls.",
"path": "plugins/lsp_zig.lua",
Expand Down
13 changes: 13 additions & 0 deletions plugins/lsp_v.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- Author: Rohan Vashisht: https://github.com/RohanVashisht1234

-- mod-version:3

local lspconfig = require "plugins.lsp.config"
local common = require "core.common"
local config = require "core.config"

local installed_path = USERDIR .. PATHSEP .. "plugins" .. PATHSEP .. "lsp_v"

lspconfig.v_lsp.setup(common.merge({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lspconfig.v_lsp is not a thing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like even with this fixed, you still need a working install of V.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh! I just forgot about this pr. sorry, I'll fix this and think about it.

command = { installed_path .. PATHSEP .. "v-analyzer" .. (PLATFORM == "Windows" and ".exe" or "") }
}, config.plugins.lsp_v or {}))