From 5687f823f1d9518ffee642db8c9cd7e7f38fc5e6 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 26 Jul 2023 00:38:34 +0000 Subject: [PATCH] fix(nvim): jsonls --- modules/neovim/config/lua/user/lsp.lua | 1 + modules/pkgs.nix | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/neovim/config/lua/user/lsp.lua b/modules/neovim/config/lua/user/lsp.lua index d0367d3..be48805 100644 --- a/modules/neovim/config/lua/user/lsp.lua +++ b/modules/neovim/config/lua/user/lsp.lua @@ -133,6 +133,7 @@ lspconfig.html.setup({ lspconfig.jsonls.setup({ capabilities = capabilities, on_attach = on_attach, + cmd = { "json-languageserver", "--stdio" }, }) lspconfig.bashls.setup({ diff --git a/modules/pkgs.nix b/modules/pkgs.nix index a39ba63..89fb11f 100644 --- a/modules/pkgs.nix +++ b/modules/pkgs.nix @@ -50,10 +50,6 @@ nur.repos.caarlos0.svu nur.repos.goreleaser.goreleaser-pro - # fonts - # using berkeley mono now, and wezterm already comes with jetbrains mono. - # (pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) - # treesitter, lsps, etc bash-language-server cargo @@ -81,12 +77,14 @@ tree-sitter typescript-language-server vscode-html-languageserver-bin + vscode-json-languageserver-bin yaml-language-server yamllint - zk + zk # zettelkasten ] ++ (lib.optionals pkgs.stdenv.isDarwin [ nur.repos.caarlos0.discord-applemusic-rich-presence terminal-notifier + coreutils ]) ++ (lib.optionals pkgs.stdenv.isLinux [ util-linux docker