update neotree, fix autocommands, and add snacks

This commit is contained in:
JesseBot 2025-02-19 12:05:02 +01:00
parent 2639abf4e3
commit 9c54948744
No known key found for this signature in database
2 changed files with 14 additions and 2 deletions

View file

@ -6,7 +6,7 @@ local autocmd = vim.api.nvim_create_autocmd
-- on file enter, set file format to unix -- on file enter, set file format to unix
autocmd({"BufEnter", "BufWinEnter"}, { autocmd({"BufEnter", "BufWinEnter"}, {
pattern = {"*"}, pattern = {"*yaml", "*yml", "*tpl"},
callback = function() callback = function()
vim.cmd("set fileformat=unix") vim.cmd("set fileformat=unix")
end, end,

View file

@ -130,7 +130,7 @@ local plugins = {
{ {
'nvim-neo-tree/neo-tree.nvim', 'nvim-neo-tree/neo-tree.nvim',
cmd = "Neotree", cmd = "Neotree",
branch = "v2.x", branch = "v3.x",
dependencies = { dependencies = {
'nvim-lua/plenary.nvim', 'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons', 'nvim-tree/nvim-web-devicons',
@ -392,6 +392,18 @@ local plugins = {
}, },
}, },
-- add gitbrowse to easily get git url
{
"folke/snacks.nvim",
---@type snacks.Config
opts = {
gitbrowse = {
-- your gitbrowse configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
}
},
-- --------------------- Language Specific Stuff ------------------------- -- --------------------- Language Specific Stuff -------------------------
{ {
'norcalli/nvim-colorizer.lua', 'norcalli/nvim-colorizer.lua',