parent
42d3439dbe
commit
88aabfd88f
2 changed files with 45 additions and 0 deletions
|
@ -731,6 +731,15 @@ lspconfig.julials.setup {
|
||||||
run(server)
|
run(server)
|
||||||
]] }
|
]] }
|
||||||
}
|
}
|
||||||
|
-- JETLS
|
||||||
|
require 'lspconfig.server_configurations.jetls'
|
||||||
|
lspconfig.jetls.setup {
|
||||||
|
on_attach = function(client, bufnr)
|
||||||
|
on_attach(client, bufnr)
|
||||||
|
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
||||||
|
end,
|
||||||
|
capabilities = capabilities,
|
||||||
|
}
|
||||||
-- SATySFi
|
-- SATySFi
|
||||||
require 'lspconfig.server_configurations.satysfi_ls'
|
require 'lspconfig.server_configurations.satysfi_ls'
|
||||||
lspconfig.satysfi_ls.setup {
|
lspconfig.satysfi_ls.setup {
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
local configs = require 'lspconfig.configs'
|
||||||
|
local util = require 'lspconfig.util'
|
||||||
|
|
||||||
|
local root_files = { 'Project.toml', 'JuliaProject.toml' }
|
||||||
|
|
||||||
|
configs.jetls = {
|
||||||
|
default_config = {
|
||||||
|
cmd = {
|
||||||
|
'julia',
|
||||||
|
'--project=' .. vim.env.HOME .. '/work/julia/JETLS.jl',
|
||||||
|
'--startup-file=no',
|
||||||
|
'--history-file=no',
|
||||||
|
'-e',
|
||||||
|
[[
|
||||||
|
using JETLS
|
||||||
|
runserver(stdin, stdout)
|
||||||
|
]]
|
||||||
|
},
|
||||||
|
filetypes = { 'julia' },
|
||||||
|
root_dir = function(fname)
|
||||||
|
return util.root_pattern(unpack(root_files))(fname)
|
||||||
|
or vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true, })[1])
|
||||||
|
end,
|
||||||
|
single_file_support = true,
|
||||||
|
},
|
||||||
|
commands = {
|
||||||
|
-- JuliaActivateEnv = {
|
||||||
|
-- activate_env
|
||||||
|
-- }
|
||||||
|
},
|
||||||
|
docs = {
|
||||||
|
description = [[
|
||||||
|
JETLS: https://github.com/aviatesk/JETLS.jl
|
||||||
|
]],
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue