change some settings
This commit is contained in:
parent
f92189bc70
commit
216b778236
|
@ -49,6 +49,13 @@ global.mkdp_browser = '/usr/bin/firefox'
|
||||||
|
|
||||||
-- Fold
|
-- Fold
|
||||||
--o.foldmethod = 'syntax'
|
--o.foldmethod = 'syntax'
|
||||||
o.foldmethod = 'expr'
|
-- o.foldmethod = 'expr'
|
||||||
o.foldexpr = 'nvim_treesitter#foldexpr()'
|
-- o.foldexpr = 'nvim_treesitter#foldexpr()'
|
||||||
o.foldlevel = 1
|
-- o.foldlevel = 1
|
||||||
|
-- o.foldnestmax = 1
|
||||||
|
-- o.nofoldenable = false
|
||||||
|
opt.foldmethod = 'indent'
|
||||||
|
opt.foldenable = false
|
||||||
|
opt.foldlevel = 99
|
||||||
|
global.markdown_folding = 1
|
||||||
|
|
||||||
|
|
|
@ -66,27 +66,28 @@ return {
|
||||||
|
|
||||||
-- Dap UI setup
|
-- Dap UI setup
|
||||||
-- For more information, see |:help nvim-dap-ui|
|
-- For more information, see |:help nvim-dap-ui|
|
||||||
dapui.setup {
|
dapui.setup()
|
||||||
-- Set icons to characters that are more likely to work in every terminal.
|
-- dapui.setup {
|
||||||
-- Feel free to remove or use ones that you like more! :)
|
-- -- Set icons to characters that are more likely to work in every terminal.
|
||||||
-- Don't feel like these are good choices.
|
-- -- Feel free to remove or use ones that you like more! :)
|
||||||
icons = { expanded = '▾', collapsed = '▸', current_frame = '*' },
|
-- -- Don't feel like these are good choices.
|
||||||
controls = {
|
-- icons = { expanded = '▾', collapsed = '▸', current_frame = '*' },
|
||||||
icons = {
|
-- controls = {
|
||||||
pause = '⏸',
|
-- icons = {
|
||||||
play = '▶',
|
-- pause = '⏸',
|
||||||
step_into = '⏎',
|
-- play = '▶',
|
||||||
step_over = '⏭',
|
-- step_into = '⏎',
|
||||||
step_out = '⏮',
|
-- step_over = '⏭',
|
||||||
step_back = 'b',
|
-- step_out = '⏮',
|
||||||
run_last = '▶▶',
|
-- step_back = 'b',
|
||||||
terminate = '⏹',
|
-- run_last = '▶▶',
|
||||||
disconnect = "⏏",
|
-- terminate = '⏹',
|
||||||
},
|
-- disconnect = "⏏",
|
||||||
},
|
-- },
|
||||||
}
|
-- },
|
||||||
|
-- }
|
||||||
|
|
||||||
require('nvim-dap-virtual-text').setup()
|
-- require('nvim-dap-virtual-text').setup()
|
||||||
require('mason-nvim-dap').setup {
|
require('mason-nvim-dap').setup {
|
||||||
-- Makes a best effort to setup the various debuggers with
|
-- Makes a best effort to setup the various debuggers with
|
||||||
-- reasonable debug configurations
|
-- reasonable debug configurations
|
||||||
|
@ -119,9 +120,9 @@ return {
|
||||||
end, { desc = 'dap breakpoint condition' })
|
end, { desc = 'dap breakpoint condition' })
|
||||||
|
|
||||||
-- toggle to see last session result. Without this ,you can't see session output in case of unhandled exception.
|
-- toggle to see last session result. Without this ,you can't see session output in case of unhandled exception.
|
||||||
vim.keymap.set("n", "<F7>", dapui.toggle)
|
vim.keymap.set("n", "<leader>tt", dapui.toggle)
|
||||||
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
|
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
|
||||||
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
|
-- dap.listeners.before.event_terminated['dapui_config'] = dapui.close
|
||||||
dap.listeners.before.event_exited['dapui_config'] = dapui.close
|
-- dap.listeners.before.event_exited['dapui_config'] = dapui.close
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,6 +8,16 @@ return {
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('neo-tree').setup {
|
require('neo-tree').setup {
|
||||||
|
close_if_last_window = true,
|
||||||
|
event_handlers = {
|
||||||
|
{
|
||||||
|
event = "file_opened",
|
||||||
|
handler = function()
|
||||||
|
require("neo-tree.command").execute({ action = "close" })
|
||||||
|
end
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
window = {
|
window = {
|
||||||
position = "right",
|
position = "right",
|
||||||
popup = {
|
popup = {
|
||||||
|
|
|
@ -10,7 +10,7 @@ return {
|
||||||
-- Open request results in a horizontal split
|
-- Open request results in a horizontal split
|
||||||
result_split_horizontal = false,
|
result_split_horizontal = false,
|
||||||
-- Skip SSL verification, useful for unknown certificates
|
-- Skip SSL verification, useful for unknown certificates
|
||||||
skip_ssl_verification = false,
|
skip_ssl_verification = true,
|
||||||
encode_url = false,
|
encode_url = false,
|
||||||
-- Highlight request on run
|
-- Highlight request on run
|
||||||
highlight = {
|
highlight = {
|
||||||
|
|
Loading…
Reference in New Issue