summaryrefslogtreecommitdiff
path: root/.config/nvim/ftplugin/json.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-22 00:08:36 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-07-22 00:08:36 +0200
commitb51f1ae28924a752258e7607fbc3210f9b18eaac (patch)
tree8c8c095528990b3f6eb499dbcca15e9720e636d1 /.config/nvim/ftplugin/json.lua
parentda936b0ed9ac4c171d3c7908e41af1875a82b08b (diff)
Updates based on Chris's lunarvim
Diffstat (limited to '.config/nvim/ftplugin/json.lua')
-rw-r--r--.config/nvim/ftplugin/json.lua25
1 files changed, 4 insertions, 21 deletions
diff --git a/.config/nvim/ftplugin/json.lua b/.config/nvim/ftplugin/json.lua
index e96ab45..0408f9b 100644
--- a/.config/nvim/ftplugin/json.lua
+++ b/.config/nvim/ftplugin/json.lua
@@ -1,21 +1,4 @@
-if require("cfg.utils").check_lsp_client_active "jsonls" then
- return
-end
-
--- npm install -g vscode-json-languageserver
-require("lspconfig").jsonls.setup {
- cmd = {
- "node",
- DATA_PATH .. "/lspinstall/json/vscode-json/json-language-features/server/dist/node/jsonServerMain.js",
- "--stdio",
- },
- on_attach = require("cfg.lsp").common_on_attach,
-
- commands = {
- Format = {
- function()
- vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
- end,
- },
- },
-}
+require("lang.json").format()
+require("lang.json").lint()
+require("lang.json").lsp()
+require("lang.json").dap()