项目作者: aca

项目描述 :
Language server implementation for neuron
高级语言: Go
项目地址: git://github.com/aca/neuron-language-server.git
创建时间: 2020-08-02T08:57:57Z
项目社区:https://github.com/aca/neuron-language-server

开源协议:

下载


neuron-language-server

Language server for neuron.

Neuron will embed language server in neuron. Check sric/neuron#213 for updates.

This is just an personal experiment.

Supports

  • textDocument/completion(search by title/id)

    completion
  • textDocument/definition
  • textDocument/hover

    definition
  • textDocument/publishDiagnostics

    diagnostic

    Virtual text is available with nvim-lsp

TODO

Prerequisites

  • neuron

Installation

  1. go get -u github.com/aca/neuron-language-server

LSP client settings

  • vim/neovim, coc.nvim
    1. "languageserver": {
    2. "neuron": {
    3. "command": "neuron-language-server",
    4. "filetypes": ["markdown"]
    5. },
  • neovim, nvim-lspconfig

    1. local nvim_lsp = require'lspconfig'
    2. local configs = require'lspconfig/configs'
    3. configs.neuron_ls = {
    4. default_config = {
    5. cmd = {'neuron-language-server'};
    6. filetypes = {'markdown'};
    7. root_dir = function()
    8. return vim.loop.cwd()
    9. end;
    10. settings = {};
    11. };
    12. }
    13. nvim_lsp.neuron_ls.setup{}