Merge branch 'main' into refactor-nvim-config

This commit is contained in:
qwjyh 2025-04-05 16:05:06 +09:00 committed by GitHub
commit 7291b582ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 49 additions and 0 deletions

View file

@ -669,6 +669,15 @@ lspconfig.julials.setup {
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
require 'lspconfig.server_configurations.satysfi_ls'
lspconfig.satysfi_ls.setup {
@ -689,6 +698,7 @@ lspconfig.powershell_es.setup {
capabilities = capabilities,
}
lspconfig.tinymist.setup {
on_attach = on_attach,
capabilities = capabilities,

View file

@ -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
]],
},
}

View file

@ -16,6 +16,9 @@ modmap:
Win_L:
held: Win_L
alone: Key_Chat
- name: left shift
remap:
Capslock: shift_l
keymap:
- name: ZenkakuHankaku to Esc
remap: