From 4d54730b0f02026b52ed8d7f281a6d6bad848e2e Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Mon, 12 May 2025 09:48:13 +0200 Subject: [PATCH 1/2] feat: add proselint --- lsp/proselint.lua | 5 +++++ lua/weeheavy/prefs.lua | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 lsp/proselint.lua diff --git a/lsp/proselint.lua b/lsp/proselint.lua new file mode 100644 index 0000000..cdd20bf --- /dev/null +++ b/lsp/proselint.lua @@ -0,0 +1,5 @@ +---@type vim.lsp.Config +return { + cmd = { "proselint" }, + filetypes = { "markdown", "text", "gitcommit", "plaintext" }, +} diff --git a/lua/weeheavy/prefs.lua b/lua/weeheavy/prefs.lua index dd448d6..75a4eb6 100644 --- a/lua/weeheavy/prefs.lua +++ b/lua/weeheavy/prefs.lua @@ -11,6 +11,7 @@ vim.lsp.enable({ "tailwind", "docker-compose", "bicep", + "proselint", }) -- Set highlight on search @@ -121,3 +122,6 @@ vim.diagnostic.config({ -- current_line = true, -- }, }) + +-- Disable log because it's slowing down Neovim +vim.lsp.log_levels = "OFF" From 3ec1f5c3e37fbe7a0b4abfcee831eedb7d008a90 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Mon, 12 May 2025 09:48:52 +0200 Subject: [PATCH 2/2] fix(snipe): more secure keymap to close buffer --- lua/weeheavy/plugins/snipe.lua | 72 +++++++++++++++++----------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/lua/weeheavy/plugins/snipe.lua b/lua/weeheavy/plugins/snipe.lua index f1a7515..15938e5 100644 --- a/lua/weeheavy/plugins/snipe.lua +++ b/lua/weeheavy/plugins/snipe.lua @@ -1,40 +1,40 @@ -- Buffer navigation -- https://github.com/leath-dub/snipe.nvim return { - "leath-dub/snipe.nvim", - opts = {}, - keys = { - { - "", - function() - require("snipe").open_buffer_menu() - end, - desc = "Open Snipe buffer menu", - }, - }, - config = function() - local snipe = require("snipe") - snipe.setup({ - hints = { - -- Charaters to use for hints - -- make sure they don't collide with the navigation keymaps - dictionary = "saflewcmpghio", - }, - ui = { - position = "topright", - -- position = "cursor", - open_win_override = { - -- title = "i can haz file?", - border = "rounded", - }, - preselect_current = true, - }, - navigate = { - cancel_snipe = "q", - close_buffer = "d", - open_vsplit = "V", - open_split = "X", - }, - }) - end, + "leath-dub/snipe.nvim", + opts = {}, + keys = { + { + "", + function() + require("snipe").open_buffer_menu() + end, + desc = "Open Snipe buffer menu", + }, + }, + config = function() + local snipe = require("snipe") + snipe.setup({ + hints = { + -- Charaters to use for hints + -- make sure they don't collide with the navigation keymaps + dictionary = "saflewcmpghio", + }, + ui = { + position = "topright", + -- position = "cursor", + open_win_override = { + -- title = "i can haz file?", + border = "rounded", + }, + preselect_current = true, + }, + navigate = { + cancel_snipe = "q", + close_buffer = "D", + open_vsplit = "V", + open_split = "X", + }, + }) + end, }