nvim: new config for copilot, neotree
This commit is contained in:
parent
94a89eafa6
commit
e9473107a7
|
@ -1,7 +1,15 @@
|
|||
---@type LazySpec
|
||||
return {
|
||||
{ "folke/flash.nvim", enabled = false },
|
||||
{ "debugloop/telescope-undo.nvim" },
|
||||
{ "ggandor/flit.nvim", optional = true, enabled = false },
|
||||
{
|
||||
"zbirenbaum/copilot.lua",
|
||||
optional = true,
|
||||
keys = {
|
||||
{ "<leader>a", "", desc = "+ai", mode = { "n" } },
|
||||
{ "<leader>at", "<CMD>Copilot detach<CR>", desc = "Detach (Copilot)" },
|
||||
{ "<leader>ac", "<CMD>Copilot attach<CR>", desc = "Attach (Copilot)" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/todo-comments.nvim",
|
||||
event = "VeryLazy",
|
||||
|
@ -43,7 +51,7 @@ return {
|
|||
},
|
||||
--stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>z", desc = "+zk" },
|
||||
{ "<leader>z", "", desc = "+zk", mode = { "n", "v" } },
|
||||
{ "<leader>zn", function() require("zk.commands").get("ZkNew")({ title = vim.fn.input('Title: ') }) end, desc = "New Note", mode = { "n", "v" } },
|
||||
{ "<leader>znt", function() require("zk.commands").get("ZkNewFromTitleSelection")() end, desc = "Title from selection", mode = { "v" } },
|
||||
{
|
||||
|
@ -69,6 +77,7 @@ return {
|
|||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
optional = true,
|
||||
dependencies = { { "debugloop/telescope-undo.nvim" } },
|
||||
opts = function()
|
||||
LazyVim.on_load("telescope.nvim", function()
|
||||
require("telescope").load_extension("undo")
|
||||
|
@ -136,6 +145,9 @@ return {
|
|||
optional = true,
|
||||
opts = {
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
},
|
||||
window = {
|
||||
mappings = require("lib").generate_shortcut_maps(),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue