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
|
||||
checker = { enabled = false },
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -15,14 +15,16 @@ vim.keymap.set("n", "<leader>xQ", "<cmd>Trouble qflist toggle<cr>", { desc = "Qu
|
|||
|
||||
-- Telescope integration
|
||||
-- local actions = require("telescope.actions")
|
||||
local open_with_trouble = require("trouble.sources.telescope").open
|
||||
-- local add_to_trouble = require("trouble.sources.telescope").add
|
||||
|
||||
require("telescope").setup({
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = { ["<c-t>"] = open_with_trouble },
|
||||
n = { ["<c-t>"] = open_with_trouble },
|
||||
local ok, telescope = pcall(require, "telescope")
|
||||
if ok then
|
||||
local open_with_trouble = require("trouble.sources.telescope").open
|
||||
telescope.setup({
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = { ["<c-t>"] = open_with_trouble },
|
||||
n = { ["<c-t>"] = open_with_trouble },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue