Update system, add insomnia, fix lsp

This commit is contained in:
Buliway 2025-04-08 17:34:08 +03:00
parent 34e11493d5
commit b887e29484
3 changed files with 12 additions and 4 deletions

6
flake.lock generated
View file

@ -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": {

View file

@ -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

View file

@ -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()