dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 3e5d22d7bbd9e8383aaeb9c0a97a9ef215d83984
parent e22b513e386aca64539a59992713071b2b6680bb
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 31 Aug 2024 08:37:00 -0700

vim: use quickfix list in place of Trouble

Trouble makes diagnostics prettier but the reliance on nerdfont support
is annoying.

Diffstat:
M.config/nvim/lazy-lock.json | 1-
M.config/nvim/lua/config/keymaps.lua | 1+
M.config/nvim/lua/plugins/utilities.lua | 12------------
3 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json @@ -13,7 +13,6 @@ "nvim-lspconfig": { "branch": "master", "commit": "3ad562700d0615818bf358268ac8914f6ce2b079" }, "rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" }, "solarized-osaka.nvim": { "branch": "main", "commit": "126d394c0c979a99206214a2b6b8c86e456c9c0f" }, - "trouble.nvim": { "branch": "main", "commit": "6efc446226679fda0547c0fd6a7892fd5f5b15d8" }, "vim-beancount": { "branch": "master", "commit": "25bcbc773554b5798d253a1a5fa5de158792f95e" }, "vim-clang-format": { "branch": "master", "commit": "6b791825ff478061ad1c57b21bb1ed5a5fd0eb29" }, "vim-fugitive": { "branch": "master", "commit": "0444df68cd1cdabc7453d6bd84099458327e5513" } diff --git a/.config/nvim/lua/config/keymaps.lua b/.config/nvim/lua/config/keymaps.lua @@ -33,6 +33,7 @@ vim.keymap.set('n', '<leader>fs', '<cmd>FzfLua lsp_document_symbols<CR>') vim.keymap.set('n', '<leader>d', function() vim.diagnostic.enable(not vim.diagnostic.is_enabled()) end, { silent = true }) +vim.keymap.set('n', '<leader>ww', vim.diagnostic.setloclist, opts) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, opts) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, opts) diff --git a/.config/nvim/lua/plugins/utilities.lua b/.config/nvim/lua/plugins/utilities.lua @@ -1,17 +1,5 @@ return { { - "folke/trouble.nvim", - opts = {}, - cmd = "Trouble", - keys = { - { "<leader>qd", "<cmd>Trouble diagnostics toggle<cr>", desc = "Diagnostics", }, - { "<leader>qD", "<cmd>Trouble diagnostics toggle filter.buf=0<cr>", desc = "Buffer Diagnostics", }, - { "<leader>qq", "<cmd>Trouble qflist toggle<cr>", desc = "Quickfix List", }, - { "<leader>ql", "<cmd>Trouble lsp toggle focus=true win.size=0.3<cr>", desc = "LSP Definitions / references / ...", }, - { "<leader>qs", "<cmd>Trouble symbols toggle focus=false win.size=0.3<cr>", desc = "Symbols", }, - }, - }, - { "ibhagwan/fzf-lua", opts = {}, },