Skip to content

Commit

Permalink
feat(options): use the histogram algorithm for diff calculations
Browse files Browse the repository at this point in the history
Co-authored-by: William Roy <wroy@proton.me>
  • Loading branch information
mehalter and wroyca committed Apr 1, 2024
1 parent 90f3c3b commit f1cfd02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astronvim/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ vim.opt.cmdheight = 0 -- hide command line unless needed
vim.opt.completeopt = { "menu", "menuone", "noselect" } -- Options for insert mode completion
vim.opt.copyindent = true -- copy the previous indentation on autoindenting
vim.opt.cursorline = true -- highlight the text line of the cursor
vim.opt.diffopt:append "linematch:60" -- enable linematch diff algorithm
vim.opt.diffopt:append { "algorithm:histogram", "linematch:60" } -- enable linematch diff algorithm
vim.opt.expandtab = true -- enable the use of space in tab
vim.opt.fileencoding = "utf-8" -- file content encoding for the buffer
vim.opt.fillchars = { eob = " " } -- disable `~` on nonexistent lines
Expand Down

0 comments on commit f1cfd02

Please sign in to comment.