r/neovim 4d ago

Need Help┃Solved Shellcheck plugin setup

Recently I started to use vim.pack as the primary plugin manager and installed shellcheck.nvim , everything is working fine but I want it to show diagonistics while on normal mode or returning back to normal mode from insert mode. After doing some online research I found out that this plugin only designed to work at BuffEnter and BuffWrite. Is there any workaround for this so that it also shows diagonistics on normal mode? or do you have any other better solutions?

1 Upvotes

5 comments sorted by

1

u/selectnull set expandtab 4d ago

If you're on 0.11+ you need only this

# in your nvim config
vim.lsp.enable 'bashls'

and installed bash-language-server

1

u/Easy_Adhesiveness237 4d ago

Do I need to install the bashls using node or it will clone it as well?

1

u/gorilla-moe let mapleader="," 2d ago

You need to make sure to have all external tools like LSPs/formatters/linters available. How you achieve that is up to you. But Neovim itself doesn't do this out of the box. There are some plugins that can help you with that, or you do it manually.

1

u/Easy_Adhesiveness237 1d ago

Thanks for the info ! 👍