begin populating qflist on nvim errors
still truncates the messages
This commit is contained in:
@@ -6,8 +6,23 @@ end
|
|||||||
|
|
||||||
vim.g.python3_host_prog = get_python_venv_path()
|
vim.g.python3_host_prog = get_python_venv_path()
|
||||||
|
|
||||||
-- GENERAL SETTINGS {{{1
|
-- POPULATE QFLIST ON ERROR {{{1
|
||||||
|
do
|
||||||
|
local orig_traceback = debug.traceback
|
||||||
|
debug.traceback = function(...)
|
||||||
|
local trace = orig_traceback(...)
|
||||||
|
|
||||||
|
-- push full trace to quickfix
|
||||||
|
vim.fn.setqflist({}, "a", {
|
||||||
|
title = "Traceback",
|
||||||
|
lines = vim.split(trace, "\n"),
|
||||||
|
})
|
||||||
|
|
||||||
|
return trace
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- GENERAL SETTINGS {{{1
|
||||||
vim.cmd [[
|
vim.cmd [[
|
||||||
set autowriteall
|
set autowriteall
|
||||||
set exrc
|
set exrc
|
||||||
@@ -623,8 +638,8 @@ require'lazy'.setup{ --{{{1
|
|||||||
]]
|
]]
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{ 'nvim-treesitter/nvim-treesitter', --{{{2
|
{ name = 'nvim-treesitter', --{{{2
|
||||||
tag="v0.10.0",
|
dir = vim.fn.stdpath("config") .. "/vendor/nvim-treesitter",
|
||||||
config = function()
|
config = function()
|
||||||
require'nvim-treesitter.configs'.setup{
|
require'nvim-treesitter.configs'.setup{
|
||||||
modules = {},
|
modules = {},
|
||||||
@@ -645,7 +660,7 @@ require'lazy'.setup{ --{{{1
|
|||||||
},
|
},
|
||||||
{ 'mfussenegger/nvim-dap', --{{{2
|
{ 'mfussenegger/nvim-dap', --{{{2
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'nvim-treesitter',
|
||||||
'theHamsta/nvim-dap-virtual-text',
|
'theHamsta/nvim-dap-virtual-text',
|
||||||
'leoluz/nvim-dap-go',
|
'leoluz/nvim-dap-go',
|
||||||
'mfussenegger/nvim-dap-python',
|
'mfussenegger/nvim-dap-python',
|
||||||
|
|||||||
Reference in New Issue
Block a user