diff --git a/flake.lock b/flake.lock index 916e723..e56a555 100644 --- a/flake.lock +++ b/flake.lock @@ -263,11 +263,11 @@ }, "nixpkgs2": { "locked": { - "lastModified": 1742669843, - "narHash": "sha256-G5n+FOXLXcRx+3hCJ6Rt6ZQyF1zqQ0DL0sWAMn2Nk0w=", + "lastModified": 1743827369, + "narHash": "sha256-rpqepOZ8Eo1zg+KJeWoq1HAOgoMCDloqv5r2EAa9TSA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "1e5b653dff12029333a6546c11e108ede13052eb", + "rev": "42a1c966be226125b48c384171c44c651c236c22", "type": "github" }, "original": { diff --git a/nixos/packages.nix b/nixos/packages.nix index fe62300..4613555 100644 --- a/nixos/packages.nix +++ b/nixos/packages.nix @@ -225,6 +225,7 @@ vim-language-server # VimScript LSP go-migrate # Database migrations. CLI and Golang library postman # API Development Environment + insomnia # For nvim tree-sitter # For nvim diff --git a/nvim/lua/kickstart/plugins/lsp.lua b/nvim/lua/kickstart/plugins/lsp.lua index dc45dd3..524e292 100644 --- a/nvim/lua/kickstart/plugins/lsp.lua +++ b/nvim/lua/kickstart/plugins/lsp.lua @@ -282,7 +282,14 @@ return { -- lspconfig.rust_analyzer.setup {} -- Bash - lspconfig.bashls.setup {} + lspconfig.bashls.setup { + on_attach = function(client, bufnr) + local filename = vim.api.nvim_buf_get_name(bufnr) + if filename:match '/%.env$' or filename:match '/%.env%..+$' then + client.stop() -- отключить LSP только для .env + end + end, + } -- JSON local cap_json = vim.lsp.protocol.make_client_capabilities()