From f3ec45204f3aa553338e83d81160fb5bd3b930a7 Mon Sep 17 00:00:00 2001 From: Sam Davenport Date: Fri, 4 Apr 2025 17:33:47 -0500 Subject: [PATCH] styling options, added stub function for customizing gruvbox --- lazy-lock.json | 1 + lua/{kickstart/plugins => sld}/autopairs.lua | 0 lua/sld/lazy.lua | 1 + lua/sld/options.lua | 2 ++ lua/sld/style.lua | 4 +++- 5 files changed, 7 insertions(+), 1 deletion(-) rename lua/{kickstart/plugins => sld}/autopairs.lua (100%) diff --git a/lazy-lock.json b/lazy-lock.json index 35ea8916..3a860441 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -17,6 +17,7 @@ "mini.nvim": { "branch": "main", "commit": "2e38ed16c2ced64bcd576986ccad4b18e2006e18" }, "neo-tree.nvim": { "branch": "main", "commit": "9b5d67119c46e3262ffe1508fe6d8540b79ad75d" }, "nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" }, + "nvim-autopairs": { "branch": "master", "commit": "84a81a7d1f28b381b32acf1e8fe5ff5bef4f7968" }, "nvim-cmp": { "branch": "main", "commit": "059e89495b3ec09395262f16b1ad441a38081d04" }, "nvim-lspconfig": { "branch": "master", "commit": "3e873195f501b1e02d9fd7e5af5cbe74fc2f98c1" }, "nvim-treesitter": { "branch": "master", "commit": "523a9e148919f58eb5a013f76787e57696e00c93" }, diff --git a/lua/kickstart/plugins/autopairs.lua b/lua/sld/autopairs.lua similarity index 100% rename from lua/kickstart/plugins/autopairs.lua rename to lua/sld/autopairs.lua diff --git a/lua/sld/lazy.lua b/lua/sld/lazy.lua index bc80d193..08799aac 100644 --- a/lua/sld/lazy.lua +++ b/lua/sld/lazy.lua @@ -768,6 +768,7 @@ require('lazy').setup({ require 'sld.gruvbox', require 'sld.tree', require 'sld.lualine', + require 'sld.autopairs', -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- diff --git a/lua/sld/options.lua b/lua/sld/options.lua index c3c63e18..4ac2d72e 100644 --- a/lua/sld/options.lua +++ b/lua/sld/options.lua @@ -69,3 +69,5 @@ vim.opt.confirm = true vim.o.guicursor = 'a:block-Cursor/lCursor-blinkwait1000-blinkon100-blinkoff100' vim.opt.termguicolors = true + +vim.opt.wrap = false diff --git a/lua/sld/style.lua b/lua/sld/style.lua index 22cede56..145b3137 100644 --- a/lua/sld/style.lua +++ b/lua/sld/style.lua @@ -1,3 +1,5 @@ +local colors = require('gruvbox-material.colors').get(vim.o.background, 'hard') + require('gruvbox-material').setup { italics = false, -- enable italics in general contrast = 'hard', -- set contrast, can be any of "hard", "medium", "soft" @@ -15,7 +17,7 @@ require('gruvbox-material').setup { signs = { highlight = true, -- whether to highlight signs }, - customize = nil, -- customize the theme in any way you desire, see below what this + customize = funtion(str_group, opt_table) {}, -- configuration accepts }