X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/556b2a0f56ba885fc466f33329647fcbb46d2920..c46a02525d29b338c3d911933d7d306c532ce24f:/nvim/lua/plugins/editor.lua diff --git a/nvim/lua/plugins/editor.lua b/nvim/lua/plugins/editor.lua index 6aa3858..cea1326 100644 --- a/nvim/lua/plugins/editor.lua +++ b/nvim/lua/plugins/editor.lua @@ -1,3 +1,4 @@ +---@type LazyPluginSpec return { { "nvim-telescope/telescope.nvim", @@ -5,6 +6,42 @@ return { { "", false }, { "gc", false }, { "gs", false }, + { "ff", false }, -- fswitch + -- use for snippets below + { "ss", false }, }, }, + { + "benfowler/telescope-luasnip.nvim", + dependencies = { + "telescope.nvim", + }, + config = function() + require("telescope").load_extension("luasnip") + end, + keys = { { "ss", "Telescope luasnip", desc = "Snippets" } }, + }, + { + "neo-tree.nvim", + lazy = false, + opts = { + filesystem = { + -- TODO: review these + bind_to_cwd = false, + follow_current_file = { + enabled = false, + }, + }, + }, + keys = function() + local NeoTree = function(args) + return function() + require("neo-tree.command").execute(args) + end + end + return { + { "fe", NeoTree({ toggle = true, dir = vim.loop.cwd() }) }, + } + end, + }, }