mirror of
https://github.com/jessebot/dot_files.git
synced 2025-10-01 01:48:43 +00:00
update neotree, fix autocommands, and add snacks
This commit is contained in:
parent
2639abf4e3
commit
9c54948744
2 changed files with 14 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue