<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          bash-language-serverA language server for Bash

          聯(lián)合創(chuàng)作 · 2023-09-30 06:12

          Bash Language Server

          Bash language server implementation based on Tree Sitter and its grammar for Bash with explainshell integration.

          Features

          • Jump to declaration
          • Find references
          • Code Outline & Show Symbols
          • Highlight occurrences
          • Code completion
          • Simple diagnostics reporting
          • Documentation for flags on hover
          • Workspace symbols
          • Rename symbol

          Installation

          npm i -g bash-language-server

          If you encounter installation errors, ensure you have node version 8 or newer (node --version).

          Clients

          The following editors and IDEs have available clients:

          Vim

          For Vim 8 or later install the plugin prabirshrestha/vim-lsp and add the following configuration to .vimrc:

          if executable('bash-language-server')
            au User lsp_setup call lsp#register_server({
                  \ 'name': 'bash-language-server',
                  \ 'cmd': {server_info->[&shell, &shellcmdflag, 'bash-language-server start']},
                  \ 'allowlist': ['sh'],
                  \ })
          endif

          For Vim 8 or Neovim using neoclide/coc.nvim, according to it's Wiki article, add the following to your coc-settings.json:

            "languageserver": {
              "bash": {
                "command": "bash-language-server",
                "args": ["start"],
                "filetypes": ["sh"],
                "ignoredRootPaths": ["~"]
              }
            }

          For Vim 8 or NeoVim using dense-analysis/ale add the following configuration to your .vimrc:

          let g:ale_linters = {
              \ 'sh': ['language_server'],
              \ }

          Neovim

          For NeoVim using autozimu/LanguageClient-neovim, add the following configuration to init.vim:

          let g:LanguageClient_serverCommands = {
              \ 'sh': ['bash-language-server', 'start']
              \ }

          For NeoVim v0.5(nightly) using its built-in lsp, install neovim/nvim-lspconfig and add the following configuration to either your init.vim or init.lua

          init.vim:

          lua require'lspconfig'.bashls.setup{}

          or

          init.lua:

          require'lspconfig'.bashls.setup{}

          Oni

          On the config file (File -> Preferences -> Edit Oni config) add the following configuration:

          "language.bash.languageServer.command": "bash-language-server",
          "language.bash.languageServer.arguments": ["start"],

          Emacs

          Lsp-mode has a built-in client, can be installed by use-package. Add the configuration to your .emacs.d/init.el

          (use-package lsp-mode
            :commands lsp
            :hook
            (sh-mode . lsp))

          Development Guide

          Please see docs/development-guide for more information.

          瀏覽 15
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  日韩在线第二页 | 欧美日韩高清性爱在线观看 | 久草天堂| 高清人妻无码 | www.99热这里只有精品 www国产夜插内射视频网站 |