diff --git a/config/nvim/lua/core/plugin_config/lsp_config.lua b/config/nvim/lua/core/plugin_config/lsp_config.lua index 3b225c43..308857e7 100644 --- a/config/nvim/lua/core/plugin_config/lsp_config.lua +++ b/config/nvim/lua/core/plugin_config/lsp_config.lua @@ -6,8 +6,7 @@ require("mason").setup() require("mason-lspconfig").setup() local mason_null_ls = require("mason-null-ls") --- vscode -local on_attach = function(client, bufnr) +-- vscode local on_attach = function(client, bufnr) vim.keymap.set("n", "rn", vim.lsp.buf.rename, {}) vim.keymap.set("n", "ca", vim.lsp.buf.code_action, {}) @@ -39,6 +38,12 @@ require('lspconfig').nil_ls.setup({ formatting = { command = { "nixpkgs-fmt" }, }, + nix = { + binary = { "nix" }, + maxMemoryMB = { "1024" }, + autoEvalInputs = { true }, + nixpkgsInputName = { "nixpkgs" }, + }, }, }, })