Update some neovim files
This commit is contained in:
parent
3839bb8582
commit
202bb2ba6f
2 changed files with 11 additions and 11 deletions
2
init.lua
2
init.lua
|
|
@ -39,5 +39,3 @@ require("lazy").setup({
|
||||||
-- automatically check for plugin updates
|
-- automatically check for plugin updates
|
||||||
checker = { enabled = false },
|
checker = { enabled = false },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,16 @@ vim.keymap.set("n", "<leader>xQ", "<cmd>Trouble qflist toggle<cr>", { desc = "Qu
|
||||||
|
|
||||||
-- Telescope integration
|
-- Telescope integration
|
||||||
-- local actions = require("telescope.actions")
|
-- local actions = require("telescope.actions")
|
||||||
local open_with_trouble = require("trouble.sources.telescope").open
|
|
||||||
-- local add_to_trouble = require("trouble.sources.telescope").add
|
-- local add_to_trouble = require("trouble.sources.telescope").add
|
||||||
|
local ok, telescope = pcall(require, "telescope")
|
||||||
require("telescope").setup({
|
if ok then
|
||||||
defaults = {
|
local open_with_trouble = require("trouble.sources.telescope").open
|
||||||
mappings = {
|
telescope.setup({
|
||||||
i = { ["<c-t>"] = open_with_trouble },
|
defaults = {
|
||||||
n = { ["<c-t>"] = open_with_trouble },
|
mappings = {
|
||||||
|
i = { ["<c-t>"] = open_with_trouble },
|
||||||
|
n = { ["<c-t>"] = open_with_trouble },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
})
|
||||||
})
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue