Diagnostics

This commit is contained in:
Rendo 2026-10-20 22:29:28 +05:00
commit 4ccf42dc68
2 changed files with 24 additions and 3 deletions

View file

@ -1,5 +1,22 @@
vim.diagnostic.enable(true) vim.diagnostic.enable()
vim.diagnostic.config({ vim.diagnostic.config({
virtual_text = false, virtual_text = {
severity = { min = vim.diagnostic.severity.WARN }, -- Only show warnings and errors
prefix = '●', -- Character shown before the message
},
signs = {
severity = { min = vim.diagnostic.severity.HINT }, -- Show all severities
},
underline = {
severity = { min = vim.diagnostic.severity.WARN },
},
update_in_insert = false,
severity_sort = true, severity_sort = true,
float = {
focusable = false,
style = 'minimal',
border = 'rounded',
source = 'always',
},
}) })

4
lua/profile.lua Normal file
View file

@ -0,0 +1,4 @@
local config_path = vim.fn.stdpath('config')
local profiles_folder = 'profiles'
local current_profile_file = 'current_profile'