1
0
Fork 0

nvim: new config for copilot, neotree

This commit is contained in:
Luca Bilke 2024-07-31 16:42:47 +02:00
parent 94a89eafa6
commit e9473107a7
Signed by: luca
GPG Key ID: F6E11C9BAA7C82F5
1 changed files with 15 additions and 3 deletions

View File

@ -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(),
},