feature: opencode functions and better telescope search
This commit is contained in:
@@ -6,8 +6,51 @@ return {
|
||||
},
|
||||
config = function()
|
||||
local builtin = require("telescope.builtin")
|
||||
vim.keymap.set("n", "<leader>ff", builtin.find_files, opts)
|
||||
vim.keymap.set("n", "<leader>fg", builtin.live_grep, opts)
|
||||
local shared_ignores = {
|
||||
-- Core / Git
|
||||
"^%.git/",
|
||||
-- Python
|
||||
"__pycache__/",
|
||||
"%.pyc",
|
||||
"%.pyo",
|
||||
"%.pyd",
|
||||
"%.venv/",
|
||||
"env/",
|
||||
"%.egg%-info/",
|
||||
"%.ruff_cache",
|
||||
"%.pytest_cache",
|
||||
"%uv.lock",
|
||||
-- Go
|
||||
"^vendor/",
|
||||
"bin/",
|
||||
"%.exe",
|
||||
-- React / Vue / JavaScript
|
||||
"node_modules/",
|
||||
"dist/",
|
||||
"build/",
|
||||
"%.next/",
|
||||
"%.nuxt/",
|
||||
"%.output/",
|
||||
-- Miscellaneous system files
|
||||
"%.DS_Store",
|
||||
"%.cache/",
|
||||
}
|
||||
|
||||
vim.keymap.set("n", "<leader>ff", function()
|
||||
builtin.find_files({
|
||||
hidden = true,
|
||||
no_ignore = true,
|
||||
file_ignore_patterns = shared_ignores,
|
||||
})
|
||||
end, opts)
|
||||
vim.keymap.set("n", "<leader>fg", function()
|
||||
builtin.live_grep({
|
||||
additional_args = function()
|
||||
return { "--hidden", "--no-ignore" }
|
||||
end,
|
||||
file_ignore_patterns = shared_ignores,
|
||||
})
|
||||
end, opts)
|
||||
vim.keymap.set("n", "<leader>fb", builtin.buffers, opts)
|
||||
|
||||
require("yanky").setup()
|
||||
|
||||
@@ -9,4 +9,6 @@
|
||||
<property name="last-show-hidden" type="bool" value="true"/>
|
||||
<property name="last-sort-column" type="string" value="THUNAR_COLUMN_DATE_MODIFIED"/>
|
||||
<property name="last-sort-order" type="string" value="GTK_SORT_DESCENDING"/>
|
||||
<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_38_PERCENT"/>
|
||||
<property name="last-details-view-column-widths" type="string" value="50,50,131,50,50,879,50,50,454,50,50,81,50,446"/>
|
||||
</channel>
|
||||
|
||||
Reference in New Issue
Block a user