From 54a7aa6501442b39b8f7c2c8558c8bb80e245e2d Mon Sep 17 00:00:00 2001 From: Henrik Bakken Date: Wed, 10 Nov 2021 00:24:25 +0100 Subject: [PATCH] updates --- nvim/init.lua | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/nvim/init.lua b/nvim/init.lua index d018950..7443383 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -451,7 +451,10 @@ require("packer").startup { use { "nvim-telescope/telescope.nvim", - requires = {"nvim-lua/popup.nvim", "nvim-lua/plenary.nvim"}, + requires = { + "nvim-lua/popup.nvim", "nvim-lua/plenary.nvim", + "nvim-telescope/telescope-live-grep-raw.nvim" + }, config = function() -- TODO grep with regex local map = vim.api.nvim_set_keymap @@ -459,8 +462,9 @@ require("packer").startup { local actions = require("telescope.actions") map("n", "", "Telescope find_files", opts) map("n", "", "Telescope git_files", opts) - map("n", "", "Telescope live_grep", opts) - map("n", "", "Telescope grep_string", opts) + map("n", "", + ":lua require('telescope').extensions.live_grep_raw.live_grep_raw()", + opts) map("n", "", "Telescope buffers", opts) map("n", "", "Telescope filetypes", opts) map("n", "", "Telescope colorscheme", opts) @@ -778,13 +782,13 @@ require("packer").startup { }, { formatCommand = "isort --stdout --profile black --force-single-line-imports -", formatStdin = true - -- }, { - -- lintCommand = "mypy --show-column-numbers --ignore-missing-imports", - -- lintFormats = { - -- "%f=%l:%c: %trror: %m", - -- "%f=%l:%c: %tarning: %m", - -- "%f=%l:%c: %tote: %m" - -- } + -- }, { + -- lintCommand = "mypy --show-column-numbers --ignore-missing-imports", + -- lintFormats = { + -- "%f=%l:%c: %trror: %m", + -- "%f=%l:%c: %tarning: %m", + -- "%f=%l:%c: %tote: %m" + -- } } }, javascript = {prettier, eslint},