feat(nvim): add '<leader>fug' for unrestricted live grep (no .gitignore)
parent
9cd012f2e2
commit
d58acd7bc2
|
@ -504,11 +504,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685655444,
|
"lastModified": 1685836261,
|
||||||
"narHash": "sha256-6EujQNAeaUkWvpEZZcVF8qSfQrNVWFNNGbUJxv/A5a8=",
|
"narHash": "sha256-rpxEPGeW4JZJcH58SQApJUtJ7w78VPtkF6Cut/Pq6Kg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e635192892f5abbc2289eaac3a73cdb249abaefd",
|
"rev": "dd4982554e18b936790da07c4ea2db7c7600f283",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -328,6 +328,12 @@ remap('n', '<leader>fg', function()
|
||||||
require('telescope.builtin').live_grep()
|
require('telescope.builtin').live_grep()
|
||||||
end, { desc = '[F]ind by [G]rep' })
|
end, { desc = '[F]ind by [G]rep' })
|
||||||
|
|
||||||
|
remap('n', '<leader>fug', function()
|
||||||
|
-- This relies on many factors: We use `rg` and that `-g '**/*'` effectively
|
||||||
|
-- drops ignore rules like the default `.gitignore` rule.
|
||||||
|
require('telescope.builtin').live_grep({ glob_pattern = '**/*' })
|
||||||
|
end, { desc = '[F]ind by [u]nrestricted [G]rep' })
|
||||||
|
|
||||||
remap('n', '<leader>fb', function()
|
remap('n', '<leader>fb', function()
|
||||||
require('telescope.builtin').buffers()
|
require('telescope.builtin').buffers()
|
||||||
end, { desc = '[F]ind existing [B]uffers' })
|
end, { desc = '[F]ind existing [B]uffers' })
|
||||||
|
@ -347,7 +353,7 @@ remap('n', '<leader>zf', function()
|
||||||
end, { desc = '[Z]ettelkasten [F]iles' })
|
end, { desc = '[Z]ettelkasten [F]iles' })
|
||||||
|
|
||||||
remap('n', '<leader>zg', function()
|
remap('n', '<leader>zg', function()
|
||||||
vim.cmd([[:ZkGrep]])
|
vim.cmd(":ZkGrep")
|
||||||
end, { desc = '[Z]ettelkasten [G]rep' })
|
end, { desc = '[Z]ettelkasten [G]rep' })
|
||||||
|
|
||||||
-- treesitter
|
-- treesitter
|
||||||
|
|
|
@ -803,11 +803,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685833925,
|
"lastModified": 1685885003,
|
||||||
"narHash": "sha256-KCo8QT/DtM4pSTQDWFOhVP7MDzwi0wb2ZlxhgjEwXtM=",
|
"narHash": "sha256-+OB0EvZBfGvnlTGg6mtyUCqkMnUp9DkmRUU4d7BZBVE=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "bffc49ffb255f213d2f902043da37b3016450f4a",
|
"rev": "607d8fad96436b134424b9935166a7cd0884003e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1182,11 +1182,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_12": {
|
"nixpkgs_12": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685655444,
|
"lastModified": 1685836261,
|
||||||
"narHash": "sha256-6EujQNAeaUkWvpEZZcVF8qSfQrNVWFNNGbUJxv/A5a8=",
|
"narHash": "sha256-rpxEPGeW4JZJcH58SQApJUtJ7w78VPtkF6Cut/Pq6Kg=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e635192892f5abbc2289eaac3a73cdb249abaefd",
|
"rev": "dd4982554e18b936790da07c4ea2db7c7600f283",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -1753,11 +1753,11 @@
|
||||||
"nixpkgs": "nixpkgs_13"
|
"nixpkgs": "nixpkgs_13"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685846256,
|
"lastModified": 1685932304,
|
||||||
"narHash": "sha256-G4aYK4VqlMHImvZ0lUnLHw1A+Cx28T0sBMvAKZBcGpk=",
|
"narHash": "sha256-HUrE7Al6Rp9GeOjUycXz25TYhXXf1vtZLf/FFPVFRNw=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "1ef3c6de6127a1cba94cc5492cdde52e33d06ea4",
|
"rev": "08b06ab2046bce2c3b5f53ec599a6550ab9a9485",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Reference in New Issue