Closed dnjmn closed 2 years ago
Hello! The default settings (provided by lspconfig) only sets sh
as the associated filetype for the bash language server. Your zsh file seem to be opened with the zsh
filetype. I don't know how AstroVim sets servers up, but you can override the associated filetypes, for example like so. More information can also be found in :h lspconfig-root-dir
!
Problem description
i installed bash-language-server via nvim-lsp-installer and it is successfully installed as showed by LspInfo ( Configured servers list: bashls ). client attached is 0.
Neovim version (>= 0.6)
NVIM v0.6.1 Build type: Release LuaJIT 2.1.0-beta3 Compiled by brew@HMBRW-A-001-M1-004.local
Features: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.6.1/share/nvim"
Run :checkhealth for more info
Operating system/version
Darwin Dhananjays-MacBook-Air.local 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:36:53 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T8101 arm64
I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig
Affected language servers
bashls
Steps to reproduce
i am using https://github.com/kabinspace/AstroVim checked health... no issue installed bashls created a .zsh file and opened in nvim
Actual behavior
no client attached
Expected behavior
bashls should be attached as lsp client
LspInfo
Healthcheck
Screenshots or recordings
No response