Skip to content

Commit 8b565be

Browse files
committed
update
1 parent ee32adc commit 8b565be

File tree

4 files changed

+26
-21
lines changed

4 files changed

+26
-21
lines changed

lazy-lock.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
2+
"blink.cmp": { "branch": "main", "commit": "b19413d214068f316c78978b08264ed1c41830ec" },
33
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
44
"github-theme": { "branch": "main", "commit": "c106c9472154d6b2c74b74565616b877ae8ed31d" },
5-
"gitsigns.nvim": { "branch": "main", "commit": "20ad4419564d6e22b189f6738116b38871082332" },
6-
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
7-
"lualine.nvim": { "branch": "master", "commit": "3946f0122255bc377d14a59b27b609fb3ab25768" },
8-
"mason-lspconfig.nvim": { "branch": "main", "commit": "d7b5feb6e769e995f7fcf44d92f49f811c51d10c" },
9-
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
10-
"nvim-lspconfig": { "branch": "master", "commit": "2010fc6ec03e2da552b4886fceb2f7bc0fc2e9c0" },
5+
"gitsigns.nvim": { "branch": "main", "commit": "130beacf8a51f00aede9c31064c749136679a321" },
6+
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
7+
"lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" },
8+
"mason-lspconfig.nvim": { "branch": "main", "commit": "4cfe411526a7a99c18281135e8b4765ae6330d15" },
9+
"mason.nvim": { "branch": "main", "commit": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800" },
10+
"nvim-lspconfig": { "branch": "master", "commit": "d696e36d5792daf828f8c8e8d4b9aa90c1a10c2a" },
1111
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
12-
"nvim-web-devicons": { "branch": "master", "commit": "8dcb311b0c92d460fac00eac706abd43d94d68af" },
12+
"nvim-web-devicons": { "branch": "master", "commit": "6788013bb9cb784e606ada44206b0e755e4323d7" },
1313
"rustaceanvim": { "branch": "master", "commit": "88575b98bb9937fb9983ddec5e532b67e75ce677" },
14-
"snacks.nvim": { "branch": "main", "commit": "eee204d690f8d8e755229ff20f63d23d48565d7c" }
14+
"snacks.nvim": { "branch": "main", "commit": "fe7cfe9800a182274d0f868a74b7263b8c0c020b" }
1515
}

lua/keybindings.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ vim.keymap.set("n", "<space>]", vim.diagnostic.goto_next, { silent = true, desc
2222
vim.keymap.set("n", "<space>[", vim.diagnostic.goto_prev, { silent = true, desc = "Go to previous diagnostic (LSP)" })
2323

2424
vim.api.nvim_create_user_command("CopyRelativePath", function()
25-
local path = vim.fn.expand("%:.")
26-
vim.fn.setreg("+", path)
27-
vim.notify('Copied "' .. path .. '" to the clipboard!')
25+
local path = vim.fn.expand "%:."
26+
vim.fn.setreg("+", path)
27+
vim.notify('Copied "' .. path .. '" to the clipboard!')
2828
end, { desc = "Copy current buffer file path" })
2929

3030
vim.api.nvim_create_user_command("CopyAbsolutePath", function()
31-
local path = vim.fn.expand("%:p")
32-
vim.fn.setreg("+", path)
33-
vim.notify('Copied "' .. path .. '" to the clipboard!')
31+
local path = vim.fn.expand "%:p"
32+
vim.fn.setreg("+", path)
33+
vim.notify('Copied "' .. path .. '" to the clipboard!')
3434
end, { desc = "Copy current buffer absolute file path" })

lua/plugins/snacks.lua

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ setup.keys = {
7676
{
7777
"<space><space>",
7878
function()
79-
Snacks.picker.files({ hidden = true })
79+
Snacks.picker.files { hidden = true }
8080
end,
8181
mode = { "n" },
8282
desc = "Search in files",
@@ -92,7 +92,7 @@ setup.keys = {
9292
{
9393
"<space>a",
9494
function()
95-
Snacks.picker.grep({ hidden = true })
95+
Snacks.picker.grep { hidden = true }
9696
end,
9797
mode = { "n" },
9898
desc = "Grep",
@@ -111,7 +111,7 @@ setup.keys = {
111111
Snacks.picker.lines()
112112
end,
113113
mode = { "n" },
114-
desc = "File explorer",
114+
desc = "Search lines in current buffer",
115115
},
116116
{
117117
"<space>w",
@@ -150,10 +150,15 @@ setup.keys = {
150150
{
151151
"<space>e",
152152
function()
153-
Snacks.picker.diagnostics { layout = "bottom" }
153+
vim.diagnostic.open_float(nil, {
154+
wrap = true,
155+
max_width = 80,
156+
focus = true,
157+
border = "rounded",
158+
})
154159
end,
155160
mode = { "n" },
156-
desc = "Show diagnostics",
161+
desc = "Show line diagnostics (wrapped)",
157162
},
158163
}
159164

lua/plugins/tree_sitter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ setup.config = function(_, opts)
9191
},
9292
filetype = "wisp",
9393
}
94-
vim.opt.runtimepath:append("/Users/milansuk/projects/wisp/tree-sitter-wisp")
94+
vim.opt.runtimepath:append "/Users/milansuk/projects/wisp/tree-sitter-wisp"
9595

9696
require("nvim-treesitter.configs").setup(opts)
9797
end

0 commit comments

Comments
 (0)