Skip to content

Commit af8a554

Browse files
committed
Updated configs
1 parent 3e6cf27 commit af8a554

File tree

4 files changed

+34
-10
lines changed

4 files changed

+34
-10
lines changed

lazy-lock.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
"copilot.vim": { "branch": "release", "commit": "3955014c503b0cd7b30bc56c86c56c0736ca0951" },
1212
"diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
1313
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
14-
"gitsigns.nvim": { "branch": "main", "commit": "c80e0b4bfc411d5740a47adc8775fd1070f2028b" },
14+
"gitsigns.nvim": { "branch": "main", "commit": "362fe61f9f19e9bceff178792780df5cce118a7d" },
1515
"indent-blankline.nvim": { "branch": "master", "commit": "9637670896b68805430e2f72cf5d16be5b97a22a" },
1616
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
17-
"leap.nvim": { "branch": "main", "commit": "14a3e2d9991b3b6c5169234daf90d62070d83eef" },
17+
"leap.nvim": { "branch": "main", "commit": "87835bf56c3162bc0508065ccb127b9f565b8a95" },
1818
"lualine.nvim": { "branch": "master", "commit": "a94fc68960665e54408fe37dcf573193c4ce82c9" },
19-
"mason-lspconfig.nvim": { "branch": "main", "commit": "73e0143385d8a2185944b42ed44d728b94ee19a3" },
19+
"mason-lspconfig.nvim": { "branch": "main", "commit": "c2465eb07db648026eee81005a659abe26e6d077" },
2020
"mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" },
21-
"neo-tree.nvim": { "branch": "v3.x", "commit": "f481de16a0eb59c985abac8985e3f2e2f75b4875" },
21+
"neo-tree.nvim": { "branch": "v3.x", "commit": "cea666ef965884414b1b71f6b39a537f9238bdb2" },
2222
"neogit": { "branch": "master", "commit": "59725524d25f9a8a9474f113d60db52bad8504d0" },
2323
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
2424
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
2525
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
2626
"nvim-cmp": { "branch": "main", "commit": "b5311ab3ed9c846b585c0c15b7559be131ec4be9" },
2727
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
28-
"nvim-lint": { "branch": "master", "commit": "2b0039b8be9583704591a13129c600891ac2c596" },
29-
"nvim-lspconfig": { "branch": "master", "commit": "1ddc1a2e692b120cda6d33c890461e49cb85d6bf" },
28+
"nvim-lint": { "branch": "master", "commit": "3c5e34c24834a67b1cb37600ab7663eefd2b0390" },
29+
"nvim-lspconfig": { "branch": "master", "commit": "7fac9025a967a4d0846660f751cd392fac6bb788" },
3030
"nvim-notify": { "branch": "master", "commit": "a22f5d7ac511c2df2fd3290a9f04c48d5a822e2e" },
3131
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
3232
"nvim-treesitter-refactor": { "branch": "master", "commit": "d8b74fa87afc6a1e97b18da23e762efb032dc270" },

lua/plugins_config/formatter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ return {
3030
markdown = { "prettierd", "prettier", stop_after_first = true },
3131
["markdown.mdx"] = { "prettierd", "prettier", stop_after_first = true },
3232
graphql = { "prettierd", "prettier", stop_after_first = true },
33-
3433
go = { "gofumpt", "goimports" },
34+
sql = { "sqlfluff" },
3535
},
3636
},
3737
}

lua/plugins_config/neo-tree.lua

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,32 @@ return {
1313
mappings = {
1414
["P"] = { "toggle_preview", config = { use_float = true, use_image_nvim = true } },
1515
["<space>"] = "open",
16+
["Y"] = function(state)
17+
-- NeoTree is based on [NuiTree](https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/tree)
18+
-- The node is based on [NuiNode](https://github.com/MunifTanjim/nui.nvim/tree/main/lua/nui/tree#nuitreenode)
19+
local node = state.tree:get_node()
20+
local filepath = node:get_id()
21+
local filename = node.name
22+
local modify = vim.fn.fnamemodify
23+
24+
local results = {
25+
filepath,
26+
modify(filepath, ":."),
27+
modify(filepath, ":~"),
28+
filename,
29+
modify(filename, ":r"),
30+
modify(filename, ":e"),
31+
}
32+
33+
-- absolute path to clipboard
34+
local result = results[2]
35+
if not result then
36+
return print("Invalid choice: " .. i)
37+
end
38+
vim.fn.setreg('+', result)
39+
vim.notify("Copied: " .. result)
40+
end,
1641
},
1742
},
18-
19-
}
43+
},
2044
}

lua/plugins_config/treesitter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ return {
77
},
88
main = 'nvim-treesitter.configs',
99
opts = {
10-
ensure_installed = { "html", "css", "scss", "vue", "javascript", "typescript", "tsx", "svelte", "json" },
10+
ensure_installed = { "html", "css", "scss", "vue", "javascript", "typescript", "tsx", "svelte", "json", "go", "terraform", "sql" },
1111
highlight = {
1212
enable = true,
1313
use_languagetree = true,

0 commit comments

Comments
 (0)