ci: format
Some checks are pending
quality / changes (push) Waiting to run
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Lua Type Check (push) Blocked by required conditions
quality / Markdown Format Check (push) Blocked by required conditions
test / Test (Neovim nightly) (push) Waiting to run
test / Test (Neovim stable) (push) Waiting to run
Some checks are pending
quality / changes (push) Waiting to run
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Lua Type Check (push) Blocked by required conditions
quality / Markdown Format Check (push) Blocked by required conditions
test / Test (Neovim nightly) (push) Waiting to run
test / Test (Neovim stable) (push) Waiting to run
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**
|
||||
|
||||
Enhance Neovim's built-in diff mode (and much more!) with language-aware
|
||||
syntax highlighting driven by treesitter.
|
||||
Enhance Neovim's built-in diff mode (and much more!) with language-aware syntax
|
||||
highlighting driven by treesitter.
|
||||
|
||||
<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