- added nlua (lua neovim) debug configuration

This commit is contained in:
Erik Mertens
2025-06-26 11:28:50 +02:00
parent f9c8a41cc6
commit bc0e4a1650
8 changed files with 281 additions and 81 deletions

View File

@ -1,4 +1,3 @@
-- Keymaps
-- Copy
vim.api.nvim_set_keymap("n", "<C-v>", '"+gp', { noremap = true })
@ -52,16 +51,6 @@ vim.o.laststatus = 3
vim.o.breakindent = true
vim.o.showbreak = "=>"
-- setup sign symbols
local signs = { Error = "", Warn = "", Hint = "💡", Info = "" }
for type, icon in pairs(signs) do
local hl = "DiagnosticSign" .. type
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
end
-- -- terminal mode
-- if jit.os == "Windows" then
-- vim.o.shell = [[C:\Users\mertens\AppData\Local\Programs\Git\bin\bash.exe]]
@ -69,5 +58,15 @@ end
--
-- vim.o.backupdir = "C:\\Users\\mertens\\AppData\\Local\\nvim-data\\backup"
-- end
vim.diagnostic.config({ virtual_lines = { current_line = true } })
vim.diagnostic.config({
severity_sort = true,
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "",
[vim.diagnostic.severity.WARN] = "",
[vim.diagnostic.severity.HINT] = "💡",
[vim.diagnostic.severity.INFO] = "",
}
},
virtual_lines = { current_line = true }
})