nvim: add luasnip

This commit is contained in:
PowerUser64 2022-04-25 14:00:19 -07:00
parent 2f433d32f2
commit 2578a84f54
3 changed files with 29 additions and 15 deletions

View file

@ -17,6 +17,7 @@ M.nvim_dap = function()
" Extra
nnoremap <silent> <leader>dp <cmd>lua require'dap'.run_last()<CR>
nnoremap <silent> <leader>dr <cmd>lua require'dap'.repl.open()<CR>
nnoremap <silent> <leader>dq <cmd>lua require'dap'.close()<CR>
]]
require("dap")
vim.fn.sign_define('DapBreakpoint', {text = '', texthl = 'ErrorMsg', linehl = '', numhl = ''}) -- custom attributes of breakpointed lines (use an emoji?)
@ -75,8 +76,8 @@ M.dap_ui = function()
-- You can change the order of elements in the sidebar
elements = {
-- size can be float or integer > 1
{ id = "scopes", size = 0.85, },
{ id = "breakpoints", size = 0.15 },
{ id = "scopes", size = 0.80, },
{ id = "breakpoints", size = 0.20 },
-- { id = "stacks", size = 0.15 },
-- { id = "watches", size = 0.15 },
},