change something in neovim

This commit is contained in:
Sakooooo 2023-08-06 17:29:29 +03:00
parent d146309c90
commit 82bae8b9a4
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -6,8 +6,7 @@ require("mason").setup()
require("mason-lspconfig").setup() require("mason-lspconfig").setup()
local mason_null_ls = require("mason-null-ls") local mason_null_ls = require("mason-null-ls")
-- vscode -- vscode local on_attach = function(client, bufnr)
local on_attach = function(client, bufnr)
vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, {}) vim.keymap.set("n", "<leader>rn", vim.lsp.buf.rename, {})
vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, {}) vim.keymap.set("n", "<leader>ca", vim.lsp.buf.code_action, {})
@ -39,6 +38,12 @@ require('lspconfig').nil_ls.setup({
formatting = { formatting = {
command = { "nixpkgs-fmt" }, command = { "nixpkgs-fmt" },
}, },
nix = {
binary = { "nix" },
maxMemoryMB = { "1024" },
autoEvalInputs = { true },
nixpkgsInputName = { "nixpkgs" },
},
}, },
}, },
}) })