commit e669d781e65dbf16db4f1e72d8328e877ffd0c8f
parent 08e0b1d01183f6cade6e29420d46a6e6aecdf115
Author: Milutin Popovic <milutin@popovic.xyz>
Date: Mon, 13 Apr 2026 20:22:02 +0100
undotree + status
Diffstat:
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lua/config/diagnostics.lua b/lua/config/diagnostics.lua
@@ -31,9 +31,9 @@ vim.diagnostic.config({
},
signs = {
text = {
- [sev.ERROR] = " ",
- [sev.WARN] = " ",
- [sev.INFO] = " ",
+ [sev.ERROR] = "E",
+ [sev.WARN] = "W",
+ [sev.INFO] = "I",
[sev.HINT] = " ",
},
},
diff --git a/lua/config/status.lua b/lua/config/status.lua
@@ -4,7 +4,7 @@ local M = {}
local function buf_dir(bufnr)
local name = vim.api.nvim_buf_get_name(bufnr)
- if name == '' then
+ if name == '' or name:find('Undo tree', 1, true) then
return nil
end
return vim.fn.fnamemodify(name, ':p:h')
diff --git a/lua/config/undotree.lua b/lua/config/undotree.lua
@@ -2,6 +2,6 @@
vim.cmd("packadd nvim.undotree")
vim.keymap.set("n", "<leader>u", function()
require("undotree").open({
- command = math.floor(vim.api.nvim_win_get_width(0) / 3) .. "vnew",
+ command = "topleft " .. math.floor(vim.api.nvim_win_get_width(0) / 3) .. "vnew",
})
end, { desc = "[U]ndotree toggle" })