nvim: after/ftplugin/sh: Drop language server & enable linting on save
Bash language server is written in typescript and we do not want to keep node, npm or pnpm around for this.
This commit is contained in:
parent
d821233538
commit
d19e7b4382
1 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,6 @@
|
||||||
local lsp_utils = require('lsp-utils')
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||||
local bashls_config = lsp_utils.bashls_config()
|
buffer = 0,
|
||||||
|
callback = function()
|
||||||
vim.lsp.start(bashls_config)
|
require("lint").try_lint()
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in a new issue