json: add LSP and linter for JSON
- Adds `json` to the treesitter languages. - Adds `jsonls` as language server provider for JSON. Co-Authored-by: iGor milhit <igor@milhit.ch>
parent
08b7169b54
commit
516ecbef92
7
init.lua
7
init.lua
|
@ -362,7 +362,7 @@ vim.keymap.set('n', '<leader>ss', require'telescope'.extensions.luasnip.luasnip
|
||||||
-- See `:help nvim-treesitter`
|
-- See `:help nvim-treesitter`
|
||||||
require('nvim-treesitter.configs').setup {
|
require('nvim-treesitter.configs').setup {
|
||||||
-- Add languages to be installed here that you want installed for treesitter
|
-- Add languages to be installed here that you want installed for treesitter
|
||||||
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim' },
|
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'json' },
|
||||||
|
|
||||||
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
|
||||||
auto_install = false,
|
auto_install = false,
|
||||||
|
@ -516,6 +516,11 @@ local servers = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- Require vscode-langservers-extracted
|
||||||
|
-- https://github.com/hrsh7th/vscode-langservers-extracted
|
||||||
|
jsonls = {
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Setup neovim lua configuration
|
-- Setup neovim lua configuration
|
||||||
|
|
Loading…
Reference in New Issue