From 1b1837be48a5fc8d46d0d490ff52f83c270b318f Mon Sep 17 00:00:00 2001 From: Brian Henderson Date: Tue, 7 Oct 2025 09:43:14 +0200 Subject: [PATCH] additional customizations --- init.lua | 7 +++++-- lua/custom/plugins/colorscheme.lua | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 395d0111..7e9ee387 100644 --- a/init.lua +++ b/init.lua @@ -804,8 +804,11 @@ require('lazy').setup({ -- my customizations json = { 'jq' }, sarif = { 'jq' }, - python = { 'ruff' }, + python = { 'ruff_format', 'ruff_organize_imports' }, html = { 'prettier' }, + javascript = { 'prettier' }, + typescript = { 'prettier' }, + typescriptreact = { 'prettier' }, }, }, }, @@ -868,7 +871,7 @@ require('lazy').setup({ -- : Toggle signature help -- -- See :h blink-cmp-config-keymap for defining your own keymap - preset = 'default', + preset = 'super-tab', -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see: -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps diff --git a/lua/custom/plugins/colorscheme.lua b/lua/custom/plugins/colorscheme.lua index f04e2738..f454843b 100644 --- a/lua/custom/plugins/colorscheme.lua +++ b/lua/custom/plugins/colorscheme.lua @@ -5,5 +5,11 @@ return { config = function() vim.o.background = 'dark' -- or 'light' vim.cmd.colorscheme 'solarized' + vim.keymap.set('n', 'Scl', function() + vim.o.background = 'light' + end, { desc = '[S]et the [c]olorscheme background [l]ight' }) + vim.keymap.set('n', 'Scd', function() + vim.o.background = 'dark' + end, { desc = '[S]et the [c]olorscheme background [d]ark' }) end, }