From 3dcf46ffeb2238b9cdd52c99ae2234e8449bbaf4 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 3 Jul 2023 13:31:07 +0400 Subject: [PATCH] add nix lsp --- config/neovim/lua/core/plugin_config/lsp_config.lua | 6 ++++++ configuration.nix | 3 +++ 2 files changed, 9 insertions(+) diff --git a/config/neovim/lua/core/plugin_config/lsp_config.lua b/config/neovim/lua/core/plugin_config/lsp_config.lua index 0903b9cf..4086286d 100644 --- a/config/neovim/lua/core/plugin_config/lsp_config.lua +++ b/config/neovim/lua/core/plugin_config/lsp_config.lua @@ -29,6 +29,12 @@ mason_null_ls.setup({ }) -- funny lsp config stuff +require('lspconfig').rnix.setup({ + on_attach = on_attach, + capabilities = capabilities, +}) + + require("lspconfig").lua_ls.setup({ on_attach = on_attach, capabilities = capabilities, diff --git a/configuration.nix b/configuration.nix index 087a9967..dbdea205 100644 --- a/configuration.nix +++ b/configuration.nix @@ -142,6 +142,9 @@ networkmanagerapplet gcc python3 + python310Packages.pip + rustup + cargo ]; };