Compare commits

...

3 Commits

Author SHA1 Message Date
don philipe
5bdd07c204 Pin gitsigns version 2025-05-14 13:36:26 +02:00
don philipe
469435454e Pin mason version 2025-05-14 10:17:44 +02:00
don philipe
3e51152da9 Search hidden files with telescope 2025-05-14 10:11:37 +02:00
3 changed files with 14 additions and 3 deletions

View File

@@ -7,8 +7,18 @@ vim.keymap.set('n', '<leader>ft', builtin.treesitter, { desc = 'Telescope treesi
-- find selected text in visual mode with Ctrl-f via telescope:
vim.keymap.set('v', '<C-f>', 'y<ESC>:Telescope live_grep default_text=<C-r>0<CR>', default_opts)
-- grep hidden files as well
local telescopeConfig = require("telescope.config")
local vimgrep_arguments = { unpack(telescopeConfig.values.vimgrep_arguments) }
-- I want to search in hidden/dot files.
table.insert(vimgrep_arguments, "--hidden")
-- I don't want to search in the `.git` directory.
table.insert(vimgrep_arguments, "--glob")
table.insert(vimgrep_arguments, "!**/.git/*")
require('telescope').setup({
defaults = {
vimgrep_arguments = vimgrep_arguments,
layout_strategy = 'vertical',
layout_config = {
vertical = { width = 0.95 }

View File

@@ -1,3 +1,3 @@
return {
{'lewis6991/gitsigns.nvim'}
{'lewis6991/gitsigns.nvim', version='^1.0.2'}
}

View File

@@ -1,6 +1,7 @@
return {
-- pin version due to https://github.com/mason-org/mason.nvim/issues/1929
-- mason for downloading language servers
{'williamboman/mason.nvim'},
{'williamboman/mason.nvim', version = "^1.0.0"},
-- mason-lspconfig to configure auto setup of language servers
{'williamboman/mason-lspconfig.nvim'},
{'williamboman/mason-lspconfig.nvim', version = "^1.0.0"},
}