feat(nvim-tree): add nvim-tree

This commit is contained in:
2025-04-17 04:56:25 +02:00
parent 16ccb1d107
commit dec79693bb
2 changed files with 282 additions and 1 deletions
+12 -1
View File
@@ -5,8 +5,19 @@ local CONFIG_DIR = vim.fn.stdpath("config") .. "/lua/ow/lsp/config"
---@class Server
local Server = require("ow.lsp.server")
---@class LSP
---@field diagnostic_signs vim.diagnostic.Opts.Signs
local M = {}
M.diagnostic_signs = {
text = {
[vim.diagnostic.severity.ERROR] = "E",
[vim.diagnostic.severity.WARN] = "W",
[vim.diagnostic.severity.INFO] = "I",
[vim.diagnostic.severity.HINT] = "H",
},
}
---@type table<string, Server>
local servers = {}
@@ -125,7 +136,7 @@ end
local function setup_diagnostics()
vim.diagnostic.config({
underline = true,
signs = true,
signs = M.diagnostic_signs,
virtual_text = false,
float = {
show_header = false,