Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
RakerZh committed Jun 15, 2024
1 parent 3363f98 commit 90862fe
Showing 1 changed file with 26 additions and 8 deletions.
34 changes: 26 additions & 8 deletions lua/modules/completion/backend.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ function M._attach(client, _)
vim.notify = mynotify
end

local client = vim.lsp.start_client({
name = 'educationlsp',
cmd = { '/Users/rakerzhang/space/educationlsp/main' },
on_attach = M._attach,
})

if not client then
vim.notify('client not in connection')
return
end

vim.api.nvim_create_autocmd('FileType', {
pattern = 'markdown',
callback = function()
vim.lsp.buf_attach_client(0, client)
end,
})

lspconfig.gopls.setup({
cmd = { 'gopls', 'serve' },
on_attach = M._attach,
Expand Down Expand Up @@ -65,14 +83,14 @@ lspconfig.lua_ls.setup({
},
})

lspconfig.marksman.setup({
on_attach = M._attach,
capabilities = M.capabilities,
cmd = {
'marksman',
'server',
},
})
-- lspconfig.marksman.setup({
-- on_attach = M._attach,
-- capabilities = M.capabilities,
-- cmd = {
-- 'marksman',
-- 'server',
-- },
-- })

lspconfig.clangd.setup({
on_attach = M._attach,
Expand Down

0 comments on commit 90862fe

Please sign in to comment.