From 2ffe0d20cd20a44edaae9b6dc41254fad5d2ba31 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Sat, 7 Dec 2024 01:27:48 -0500 Subject: [PATCH] updates for python, additional grep --- init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init.lua b/init.lua index b42bce57..2e026377 100644 --- a/init.lua +++ b/init.lua @@ -219,6 +219,11 @@ require('lazy').setup({ }) end, { desc = '[/] Fuzzily search in current buffer' }) + -- Prompting + vim.keymap.set('n', 'fG', function() + builtin.grep_string { search = vim.fn.input 'grep> ' } + end) + -- It's also possible to pass additional configuration options. -- See `:help telescope.builtin.live_grep()` for information about particular keys vim.keymap.set('n', 's/', function() @@ -343,6 +348,9 @@ require('lazy').setup({ local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { 'stylua', -- Used to format Lua code + 'ruff', -- lint and format for python + 'debugpy', -- debugger + 'taplo', -- LSP for toml files }) require('mason-tool-installer').setup { ensure_installed = ensure_installed }