Compare commits

...

3 Commits

4 changed files with 29 additions and 44 deletions

View File

@ -40,8 +40,6 @@
"render-markdown.nvim": { "branch": "main", "commit": "ba6253d9673daf0cf394b87b2c2ecb7630944c7d" },
"rustaceanvim": { "branch": "master", "commit": "6db1fe9e3f005b2e0921c7302d2c195eeb90a451" },
"snacks.nvim": { "branch": "main", "commit": "98df370703b3c47a297988f3e55ce99628639590" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" },
"telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" },
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },
"tokyonight.nvim": { "branch": "main", "commit": "45d22cf0e1b93476d3b6d362d720412b3d34465c" },
"trouble.nvim": { "branch": "main", "commit": "46cf952fc115f4c2b98d4e208ed1e2dce08c9bf6" },

16
lua/plugins/neotree.lua Normal file
View File

@ -0,0 +1,16 @@
return {
{
"nvim-neo-tree/neo-tree.nvim",
opts = {
event_handlers = {
{
event = require("neo-tree.events").FILE_OPEN_REQUESTED,
handler = function()
-- auto close when opening a file
require("neo-tree.command").execute({ action = "close" })
end,
},
},
},
},
}

13
lua/plugins/snacks.lua Normal file
View File

@ -0,0 +1,13 @@
return {
{
"folke/snacks.nvim",
opts = {
indent = {
scope = {
-- Don't enable extra highlighting at the scope level.
enabled = false,
},
},
},
},
}

View File

@ -1,42 +0,0 @@
return {
{
"nvim-telescope/telescope.nvim",
lazy = false,
priority = 100,
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
local actions = require("telescope.actions")
require("telescope").setup {
defaults = {
layout_strategy = 'horizontal',
layout_config = {
prompt_position = 'top',
},
sorting_strategy = "ascending",
mappings = {
i = {
["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous,
}
}
},
extensions = {
file_browser = {
cwd_to_path = true,
display_stat = false,
grouped = true,
initial_mode = 'normal',
select_buffer = true,
},
},
}
require("telescope").load_extension "file_browser"
end
},
{
'nvim-telescope/telescope-file-browser.nvim',
lazy = false,
dependencies = { 'nvim-telescope/telescope.nvim', 'nvim-lua/plenary.nvim' },
},
}