summaryrefslogtreecommitdiff
path: root/nvim/lua/config/lsp.lua
blob: 5a5b51683059b212d4fc9504736aea82b87efda0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- requires json language service - npm i -g vscode-langservers-extracted
vim.lsp.enable('jsonls')
vim.lsp.config('jsonls', {
	settings = {
		json = {
			schemas = require('schemastore').json.schemas(),
			validate = { enable = true },
		},
	},
})

-- requires bash-language-server, shellcheck is a nice optional addition
vim.lsp.config.bashls = {
  cmd = { 'bash-language-server', 'start' },
  filetypes = { 'bash', 'sh' }
}
vim.lsp.enable('bashls')