ci: format
Some checks failed
quality / changes (push) Has been cancelled
test / Test (Neovim nightly) (push) Has been cancelled
test / Test (Neovim stable) (push) Has been cancelled
quality / Lua Format Check (push) Has been cancelled
quality / Lua Lint Check (push) Has been cancelled
quality / Lua Type Check (push) Has been cancelled
quality / Markdown Format Check (push) Has been cancelled
Some checks failed
quality / changes (push) Has been cancelled
test / Test (Neovim nightly) (push) Has been cancelled
test / Test (Neovim stable) (push) Has been cancelled
quality / Lua Format Check (push) Has been cancelled
quality / Lua Lint Check (push) Has been cancelled
quality / Lua Type Check (push) Has been cancelled
quality / Markdown Format Check (push) Has been cancelled
This commit is contained in:
parent
9b41408fd8
commit
59714381f1
2 changed files with 63 additions and 2 deletions
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
**Treesitter-powered Diff Syntax highlighting for Neovim**
|
**Treesitter-powered Diff Syntax highlighting for Neovim**
|
||||||
|
|
||||||
Enhance Neovim's built-in diff mode (and much more!) with language-aware
|
Enhance Neovim's built-in diff mode (and much more!) with language-aware syntax
|
||||||
syntax highlighting driven by treesitter.
|
highlighting driven by treesitter.
|
||||||
|
|
||||||
<video src="https://github.com/user-attachments/assets/24574916-ecb2-478e-a0ea-e4cdc971e310" width="100%" controls></video>
|
<video src="https://github.com/user-attachments/assets/24574916-ecb2-478e-a0ea-e4cdc971e310" width="100%" controls></video>
|
||||||
|
|
||||||
|
|
|
||||||
61
minimal_init.lua
Normal file
61
minimal_init.lua
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
vim.cmd([[set runtimepath=$VIMRUNTIME]])
|
||||||
|
vim.o.background = 'dark'
|
||||||
|
vim.o.number = true
|
||||||
|
vim.o.relativenumber = true
|
||||||
|
|
||||||
|
local root = vim.fn.fnamemodify('/tmp/diffs-harivansh-repro', ':p')
|
||||||
|
vim.opt.packpath = { root }
|
||||||
|
vim.env.XDG_CONFIG_HOME = root
|
||||||
|
vim.env.XDG_DATA_HOME = root
|
||||||
|
vim.env.XDG_STATE_HOME = root
|
||||||
|
vim.env.XDG_CACHE_HOME = root
|
||||||
|
|
||||||
|
vim.opt.rtp:prepend(vim.fn.expand('~/dev/diffs.nvim'))
|
||||||
|
|
||||||
|
local lazypath = root .. '/lazy.nvim'
|
||||||
|
if not vim.uv.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
'git',
|
||||||
|
'clone',
|
||||||
|
'--filter=blob:none',
|
||||||
|
'--branch=stable',
|
||||||
|
'https://github.com/folke/lazy.nvim.git',
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require('lazy').setup({
|
||||||
|
{
|
||||||
|
dir = vim.fn.expand('~/dev/midnight.nvim'),
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
vim.cmd.colorscheme('midnight')
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{ 'tpope/vim-fugitive' },
|
||||||
|
{
|
||||||
|
dir = vim.fn.expand('~/dev/diffs.nvim'),
|
||||||
|
init = function()
|
||||||
|
vim.g.diffs = {
|
||||||
|
integrations = {
|
||||||
|
fugitive = {
|
||||||
|
enabled = true,
|
||||||
|
horizontal = false,
|
||||||
|
vertical = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
hide_prefix = false,
|
||||||
|
highlights = {
|
||||||
|
gutter = true,
|
||||||
|
intra = { enabled = true },
|
||||||
|
overrides = {
|
||||||
|
DiffsAdd = { bg = '#ff0000' },
|
||||||
|
DiffsDelete = { bg = '#0000ff' },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}, { root = root .. '/plugins' })
|
||||||
Loading…
Add table
Add a link
Reference in a new issue