From ec37d03c656536fb059956e0b1230e9feba4aabc Mon Sep 17 00:00:00 2001 From: agryphus Date: Wed, 4 Feb 2026 12:20:42 -0500 Subject: [PATCH 1/2] Add: format keybind --- after/plugin/lsp.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 3f81649..0cafae7 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -1,13 +1,6 @@ -- LANGUAGE SERVERS -local lsp_zero = require('lsp-zero') local lsp_capabilities = require("cmp_nvim_lsp").default_capabilities() -lsp_zero.on_attach(function(client, bufnr) - -- see :help lsp-zero-keybindings - -- to learn the available actions - lsp_zero.default_keymaps({buffer = bufnr}) -end) - -- LUA vim.lsp.config('lua_ls', { settings = { @@ -60,6 +53,10 @@ vim.keymap.set("n", "gf", ":GoFmt", { noremap = true, silent = true, desc = "Go Format" } ) +vim.keymap.set("n", "ff", "lua vim.lsp.buf.format()", + { desc = "Format Code" } +) + -- AUTOCOMPLETION local cmp = require('cmp') From 2538e9b2466f3dbc64f2ca96cb86ca64a6a93e10 Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 16 Apr 2026 14:42:09 -0400 Subject: [PATCH 2/2] fix: no-clown-fiesta not coloring some rust lsp types --- after/ftplugin/rust.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 after/ftplugin/rust.lua diff --git a/after/ftplugin/rust.lua b/after/ftplugin/rust.lua new file mode 100644 index 0000000..711c400 --- /dev/null +++ b/after/ftplugin/rust.lua @@ -0,0 +1,9 @@ +vim.api.nvim_create_autocmd("LspAttach", { + buffer = 0, + callback = function() + vim.defer_fn(function() + vim.api.nvim_set_hl(0, "@lsp.type.namespace.rust", { link = "Include" }) + vim.api.nvim_set_hl(0, "@lsp.type.macro.rust", { link = "Macro" }) + end, 50) + end, +})