From 6b8bfad38db84b977c01468894ee034584aef6f3 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 20 Dec 2024 16:34:59 +0100 Subject: [PATCH] chore(nvim): update LSP and spider config --- vim/lua/lsp_config.lua | 2 +- vim/lua/spider_config.lua | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/lua/lsp_config.lua b/vim/lua/lsp_config.lua index 77733da..aeccbd4 100644 --- a/vim/lua/lsp_config.lua +++ b/vim/lua/lsp_config.lua @@ -23,7 +23,7 @@ local on_attach = function(client, bufnr) vim.api.nvim_buf_set_keymap(bufnr, "n", "[e", 'lua vim.diagnostic.goto_prev({severity="Error"})', opts) vim.api.nvim_buf_set_keymap(bufnr, "n", "]d", "lua vim.diagnostic.goto_next()", opts) vim.api.nvim_buf_set_keymap(bufnr, "n", "[d", "lua vim.diagnostic.goto_prev()", opts) - vim.api.nvim_buf_set_keymap(bufnr, "n", "cd", "lua vim.diagnostic.hide(nil, 0)", opts) + vim.api.nvim_buf_set_keymap(bufnr, "n", "ch", "lua vim.diagnostic.hide(nil, 0)", opts) -- fzf triggers: vim.api.nvim_buf_set_keymap(bufnr, "n", "fr", "References", opts) diff --git a/vim/lua/spider_config.lua b/vim/lua/spider_config.lua index 842839b..29e34b6 100644 --- a/vim/lua/spider_config.lua +++ b/vim/lua/spider_config.lua @@ -1,4 +1,6 @@ -require('spider').setup({}) +require('spider').setup({ + skipInsignificantPunctuation = false, +}) vim.keymap.set( { "n", "o", "x" },