feat: update settings for nvim
This commit is contained in:
parent
be08f1593d
commit
c1de9ef4ff
2 changed files with 16 additions and 4 deletions
|
|
@ -69,10 +69,17 @@ function M.setup()
|
|||
dapui.close({})
|
||||
end
|
||||
|
||||
-- Настройка значков для точек останова :cite[1]:cite[10]
|
||||
vim.fn.sign_define("DapBreakpoint", { text = "🔴", texthl = "LspDiagnosticsSignError" })
|
||||
vim.fn.sign_define("DapStopped", { text = "➡️", texthl = "LspDiagnosticsSignInformation" })
|
||||
vim.fn.sign_define("DapBreakpointRejected", { text = "❌", texthl = "LspDiagnosticsSignHint" })
|
||||
-- Настройка подсветки для точек останова (ИСПРАВЛЕННАЯ ВЕРСИЯ)
|
||||
vim.api.nvim_set_hl(0, 'DapBreakpoint', { fg = '#993939', bg = '#31353f' })
|
||||
vim.api.nvim_set_hl(0, 'DapLogPoint', { fg = '#61afef', bg = '#31353f' })
|
||||
vim.api.nvim_set_hl(0, 'DapStopped', { fg = '#98c379', bg = '#31353f' })
|
||||
|
||||
-- Настройка значков (эта часть правильная)
|
||||
vim.fn.sign_define('DapBreakpoint', { text='', texthl='DapBreakpoint', linehl='DapBreakpoint', numhl='DapBreakpoint' })
|
||||
vim.fn.sign_define('DapBreakpointCondition', { text='ﳁ', texthl='DapBreakpoint', linehl='DapBreakpoint', numhl='DapBreakpoint' })
|
||||
vim.fn.sign_define('DapBreakpointRejected', { text='', texthl='DapBreakpoint', linehl='DapBreakpoint', numhl= 'DapBreakpoint' })
|
||||
vim.fn.sign_define('DapLogPoint', { text='', texthl='DapLogPoint', linehl='DapLogPoint', numhl= 'DapLogPoint' })
|
||||
vim.fn.sign_define('DapStopped', { text='', texthl='DapStopped', linehl='DapStopped', numhl= 'DapStopped' })
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
|
|
@ -17,6 +17,11 @@ return {
|
|||
"machakann/vim-highlightedyank",
|
||||
event = "VeryLazy",
|
||||
},
|
||||
-- Icons
|
||||
{
|
||||
'ryanoasis/vim-devicons',
|
||||
event = "VeryLazy",
|
||||
},
|
||||
-- These are for C/C++ Debbuger
|
||||
{
|
||||
"nvim-neotest/nvim-nio",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue