Fix tabufline, auto ft=diff on diffview, add diff highlight syntax + lua tabstop=2
This commit is contained in:
@@ -1 +1,11 @@
|
||||
return {}
|
||||
return {
|
||||
hooks = {
|
||||
diff_buf_read = function(_)
|
||||
vim.opt_local.wrap = false
|
||||
vim.opt_local.list = false
|
||||
end,
|
||||
view_opened = function(_)
|
||||
vim.api.nvim_command "set ft=diff"
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
||||
+2
-2
@@ -206,11 +206,11 @@ map(
|
||||
-- Tabufline
|
||||
-- cycle through buffers
|
||||
map("n", "<tab>", function()
|
||||
require("nvchad.tabufline").tabuflineNext()
|
||||
require("nvchad.tabufline").next()
|
||||
end, { desc = "Goto next buffer" })
|
||||
|
||||
map("n", "<S-tab>", function()
|
||||
require("nvchad.tabufline").tabuflinePrev()
|
||||
require("nvchad.tabufline").prev()
|
||||
end, { desc = "Goto prev buffer" })
|
||||
|
||||
-- close buffer + hide terminal buffer
|
||||
|
||||
Reference in New Issue
Block a user