use qflist for lsp

This commit is contained in:
iofq 2025-08-12 23:02:55 -05:00
parent 24b44e172f
commit 58c0637b78
9 changed files with 31 additions and 72 deletions

View file

@ -1,9 +1,3 @@
-- create undopath
vim.api.nvim_create_autocmd('VimEnter', {
command = 'silent !mkdir -p ' .. vim.fn.stdpath('data') .. 'undo',
group = vim.api.nvim_create_augroup('Init', {}),
})
-- open :h in buffers
vim.api.nvim_create_autocmd('BufWinEnter', {
pattern = '*',
@ -31,6 +25,7 @@ vim.api.nvim_create_autocmd({ 'FileType' }, {
vim.cmd('copen')
-- move cursor to stay at same index (or up one if at EOF)
vim.api.nvim_win_set_cursor(vim.fn.win_getid(), { ln < #qf and ln or math.max(ln - 1, 1), 0 })
require('quicker').refresh()
end, { buffer = true })
end,
})

View file

@ -1,6 +1,7 @@
-- Switch tab length on the fly
vim.keymap.set('n', '\\t', function()
vim.o.tabstop = vim.o.tabstop == 8 and 2 or 2 * vim.o.tabstop
vim.notify('tabstop: ' .. vim.o.tabstop)
end, { silent = true, desc = 'toggle tabstop' })
vim.keymap.set({ 'v', 'i' }, 'wq', '<esc>l', { noremap = true, silent = true })
vim.keymap.set('v', '<', '<gv')