blob: bab91e6ec3912d93cac611890e218b39757f4b56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
local M = {}
M.config = function()
O.lang.vim = {
linters = { "vint" },
lsp = {
path = DATA_PATH .. "/lspinstall/vim/node_modules/.bin/vim-language-server",
},
}
end
M.format = function()
-- TODO: implement formatter for language
return "No formatter available!"
end
M.lint = function()
require("lint").linters_by_ft = {
vim = O.lang.vim.linters,
}
end
M.lsp = function()
if require("utils").check_lsp_client_active "vimls" then
return
end
-- npm install -g vim-language-server
require("lspconfig").vimls.setup {
cmd = { DATA_PATH .. "/lspinstall/vim/node_modules/.bin/vim-language-server", "--stdio" },
on_attach = require("lsp").common_on_attach,
}
end
M.dap = function()
-- TODO: implement dap
return "No DAP configured!"
end
return M
|