diff --git a/nix/programs/coding.nix b/nix/programs/coding.nix index 041d3bc..be3e5d6 100644 --- a/nix/programs/coding.nix +++ b/nix/programs/coding.nix @@ -47,6 +47,7 @@ #json jq + nodePackages.vscode-json-languageserver #css tailwindcss diff --git a/nix/programs/nvim/lua/plugins/lsp.lua b/nix/programs/nvim/lua/plugins/lsp.lua index cb2ff7c..59ca30a 100644 --- a/nix/programs/nvim/lua/plugins/lsp.lua +++ b/nix/programs/nvim/lua/plugins/lsp.lua @@ -1,11 +1,6 @@ return { { "williamboman/mason.nvim", - --opts = function() - -- return { - -- ensure_installed = {}, - -- } - --end, }, { "neovim/nvim-lspconfig", @@ -160,6 +155,10 @@ return { zls = { mason = false, }, + jsonls = { + mason = false, + cmd = { "vscode-json-languageserver", "--stdio" }, + }, cssls = { mason = false, cmd = { "css-languageserver", "--stdio" }, @@ -194,7 +193,6 @@ return { opts = { keys = { { - -- Customize or remove this keymap to your liking "cF", function() require("conform").format({ async = true, lsp_fallback = true }) @@ -211,7 +209,6 @@ return { cs = { "dotnet-csharpier" }, markdown = { "mdformat" }, sql = { "sql-formatter" }, - -- json doesn't work? json = { "jq" }, yaml = { "yamlfmt" }, },