summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/json.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-08 20:17:26 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-08 20:17:26 +0200
commit88616bde7c7b5b25f505997aa2171245f7341453 (patch)
tree7232fff70899952e2f91cb8b5d39c496840105db /.config/nvim/ftplugin/json.lua
parent8c0ace95e67f76b900cacd8daa38faa1444cb3b9 (diff)
Updates to lang stuff
Diffstat (limited to '.config/nvim/ftplugin/json.lua')
-rw-r--r--.config/nvim/ftplugin/json.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/nvim/ftplugin/json.lua b/.config/nvim/ftplugin/json.lua
index 29a3096..e96ab45 100644
--- a/.config/nvim/ftplugin/json.lua
+++ b/.config/nvim/ftplugin/json.lua
@@ -1,3 +1,7 @@
+if require("cfg.utils").check_lsp_client_active "jsonls" then
+ return
+end
+
-- npm install -g vscode-json-languageserver
require("lspconfig").jsonls.setup {
cmd = {
@@ -5,7 +9,7 @@ require("lspconfig").jsonls.setup {
DATA_PATH .. "/lspinstall/json/vscode-json/json-language-features/server/dist/node/jsonServerMain.js",
"--stdio",
},
- on_attach = require("lsp").common_on_attach,
+ on_attach = require("cfg.lsp").common_on_attach,
commands = {
Format = {