-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update .config/nvim/lua/plugins/copilot.lua Add .config/nvim/lua/plugins/trouble.lua Change attributes of .config/nvim/init.lua
- Loading branch information
1 parent
42372d1
commit 4027158
Showing
4 changed files
with
79 additions
and
12 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,25 @@ | ||
return { | ||
"github/copilot.vim", | ||
{ | ||
"zbirenbaum/copilot.lua", | ||
cmd = "Copilot", | ||
event = "InsertEnter", | ||
config = function() | ||
require("copilot").setup({ | ||
suggestion = { | ||
enabled = true, | ||
auto_trigger = true, | ||
hide_during_completion = false, | ||
debounce = 25, | ||
keymap = { | ||
accept = false, | ||
accept_word = false, | ||
accept_line = "<Tab>", | ||
next = false, | ||
prev = false, | ||
dismiss = false, | ||
}, | ||
}, | ||
}) | ||
end, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
return { | ||
{ | ||
"folke/trouble.nvim", | ||
version = "v3.7.1", | ||
config = function() | ||
require("trouble").setup({}) | ||
|
||
vim.keymap.set("n", "[t", function() | ||
require("trouble").next({ skip_groups = true, jump = true }) | ||
end) | ||
|
||
vim.keymap.set("n", "]t", function() | ||
require("trouble").prev({ skip_groups = true, jump = true }) | ||
end) | ||
end, | ||
keys = { | ||
{ | ||
"<leader>t", | ||
"<cmd>Trouble diagnostics toggle<cr>", | ||
desc = "Diagnostics (Trouble)", | ||
}, | ||
{ | ||
"<leader>tb", | ||
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>", | ||
desc = "Buffer Diagnostics (Trouble)", | ||
}, | ||
{ | ||
"<leader>cs", | ||
"<cmd>Trouble symbols toggle focus=false<cr>", | ||
desc = "Symbols (Trouble)", | ||
}, | ||
{ | ||
"<leader>cl", | ||
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>", | ||
desc = "LSP Definitions / references / ... (Trouble)", | ||
}, | ||
{ | ||
"<leader>xL", | ||
"<cmd>Trouble loclist toggle<cr>", | ||
desc = "Location List (Trouble)", | ||
}, | ||
{ | ||
"<leader>xQ", | ||
"<cmd>Trouble qflist toggle<cr>", | ||
desc = "Quickfix List (Trouble)", | ||
}, | ||
}, | ||
}, | ||
} |