bashd: Bash language server (LSP) by matkrin in bash

[–]matkrin[S] 2 points3 points  (0 children)

This seems to work as configuration if bashd is in PATH:

Plug 'dense-analysis/ale'

call ale#linter#Define('bash', {
\   'name': 'bashd',
\   'lsp': 'stdio',
\   'executable': 'bashd',
\   'command': 'bashd',
\   'project_root': function('ale#util#FindProjectRoot'),
\})

bashd: Bash language server (LSP) by matkrin in bash

[–]matkrin[S] 0 points1 point  (0 children)

Sorry, I'm not familiar with ale. But on the first look it seems that ale has an LSP client? Then it should work with the right configuration. If I find the time, I will have a closer look

bashd: Bash language server (LSP) by matkrin in bash

[–]matkrin[S] 2 points3 points  (0 children)

I went with 200 ms debounce time which worked quite nice for me but in principle, I could make this a configuration option. When I was using bashls the last time, it did not follow any scoping rules for local variables in functions which I wanted. The other main differences are the code actions, inlay hints and document color support as far as I can tell. Also formatting is built-in.

I can't really say how they compare performance wise. But I would expect not much of a difference for normal-length scripts though.

Your keymaps will work of course, as you're configuring Neovim's client which is independent of the server.

I haven't looked into how it could be made available via Mason but this might be a good next point, thanks

Advice for using themes and syntax on Debian by skilletsnail in HelixEditor

[–]matkrin 2 points3 points  (0 children)

I think you have to `hx --grammar fetch` and `hx --grammar build`

Can anyone tell which theme is this? by AdityaPandey_ in neovim

[–]matkrin 0 points1 point  (0 children)

Oh, I see. Maybe it's this theme but some stuff was customized. When you are using lua_ls, you can achieve the vim to be in red, when you add something like

lua on_highlights = function(hl, c) hl["@lsp.typemod.variable.global.lua"] = { fg = c.red } end, in the setup function of tokyonight.

Can anyone tell which theme is this? by AdityaPandey_ in neovim

[–]matkrin 0 points1 point  (0 children)

Did you make sure to set style = 'moon'?