From 9c549487446df0d35028b41373b190813843c63a Mon Sep 17 00:00:00 2001 From: jessebot Date: Wed, 19 Feb 2025 12:05:02 +0100 Subject: [PATCH] update neotree, fix autocommands, and add snacks --- .config/nvim/lua/user/autocommands.lua | 2 +- .config/nvim/lua/user/lazy.lua | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/user/autocommands.lua b/.config/nvim/lua/user/autocommands.lua index 0a135e2..2a2b0a1 100644 --- a/.config/nvim/lua/user/autocommands.lua +++ b/.config/nvim/lua/user/autocommands.lua @@ -6,7 +6,7 @@ local autocmd = vim.api.nvim_create_autocmd -- on file enter, set file format to unix autocmd({"BufEnter", "BufWinEnter"}, { - pattern = {"*"}, + pattern = {"*yaml", "*yml", "*tpl"}, callback = function() vim.cmd("set fileformat=unix") end, diff --git a/.config/nvim/lua/user/lazy.lua b/.config/nvim/lua/user/lazy.lua index e0bf838..c9428ed 100644 --- a/.config/nvim/lua/user/lazy.lua +++ b/.config/nvim/lua/user/lazy.lua @@ -130,7 +130,7 @@ local plugins = { { 'nvim-neo-tree/neo-tree.nvim', cmd = "Neotree", - branch = "v2.x", + branch = "v3.x", dependencies = { 'nvim-lua/plenary.nvim', '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 ------------------------- { 'norcalli/nvim-colorizer.lua',