- added nlua (lua neovim) debug configuration
This commit is contained in:
@ -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 }
|
||||
})
|
||||
|
Reference in New Issue
Block a user