From fe3886fbdfcfd2c349e27ca95b326c6c1dca4615 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Thu, 28 Aug 2025 00:58:30 +0200 Subject: [PATCH] up --- lazyvim.json | 9 +++++++++ lua/custom/keymaps/groups.lua | 3 +++ lua/kickstart/core/lazy-plugins.lua | 10 ++++++++-- .../plugins/{themes.lua => colorschemes.lua} | 3 +-- lua/kickstart/plugins/header.lua | 18 ++++++++++++++++++ lua/kickstart/plugins/latex.lua | 19 +++++++++++++++++++ lua/kickstart/plugins/lsp.lua | 5 +++++ 7 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 lazyvim.json rename lua/kickstart/plugins/{themes.lua => colorschemes.lua} (98%) create mode 100644 lua/kickstart/plugins/latex.lua diff --git a/lazyvim.json b/lazyvim.json new file mode 100644 index 0000000..a28f5eb --- /dev/null +++ b/lazyvim.json @@ -0,0 +1,9 @@ +{ + "extras": [ + + ], + "news": { + "NEWS.md": "10960" + }, + "version": 8 +} \ No newline at end of file diff --git a/lua/custom/keymaps/groups.lua b/lua/custom/keymaps/groups.lua index f4f98cc..e86633c 100644 --- a/lua/custom/keymaps/groups.lua +++ b/lua/custom/keymaps/groups.lua @@ -17,6 +17,9 @@ wk.add { { mode = { 'n', 'v' }, { 'b', group = '[b]uffers' }, + { 'ba', group = '[a]dd to buffer' }, + { 'bal', group = '[l]icence' }, + { 'e', group = '[e]xplore' }, { 'g', group = '[g]it hunk' }, { 'o', group = '[o]bsidian' }, diff --git a/lua/kickstart/core/lazy-plugins.lua b/lua/kickstart/core/lazy-plugins.lua index 79513f5..641e4a9 100644 --- a/lua/kickstart/core/lazy-plugins.lua +++ b/lua/kickstart/core/lazy-plugins.lua @@ -10,6 +10,11 @@ -- -- NOTE: Here is where you install your plugins. require('lazy').setup({ +-- spec = { +-- -- add LazyVim and import its plugins +-- { 'LazyVim/LazyVim' }, +-- }, + -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'NMAC427/guess-indent.nvim', -- Detect tabstop and shiftwidth automatically @@ -33,9 +38,10 @@ require('lazy').setup({ require 'kickstart.plugins.quarto', require 'kickstart.plugins.obsidian', require 'kickstart.plugins.markdown', + require 'kickstart.plugins.latex', - -- Themes - require 'kickstart.plugins.themes', + -- Colorschemes + require 'kickstart.plugins.colorschemes', -- 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/kickstart/plugins/themes.lua b/lua/kickstart/plugins/colorschemes.lua similarity index 98% rename from lua/kickstart/plugins/themes.lua rename to lua/kickstart/plugins/colorschemes.lua index b63af39..0da3f99 100644 --- a/lua/kickstart/plugins/themes.lua +++ b/lua/kickstart/plugins/colorschemes.lua @@ -28,7 +28,6 @@ return { vim.api.nvim_set_hl(0, 'MoltenOutputBorderSuccess', { link = 'MoonflyBlue' }) end, }, - { -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. @@ -57,7 +56,7 @@ return { require('onedark').setup { style = 'darker', } - -- require('onedark').load() end, }, } + diff --git a/lua/kickstart/plugins/header.lua b/lua/kickstart/plugins/header.lua index 968a30b..076752e 100644 --- a/lua/kickstart/plugins/header.lua +++ b/lua/kickstart/plugins/header.lua @@ -4,6 +4,24 @@ return { { 'attilarepka/header.nvim', + keys = { + { 'bah', 'AddHeader', desc = 'add [h]eader' }, + { 'balm', 'AddMITLicence', desc = 'add [m]it licence' }, + { 'bala', 'AddApacheLicence', desc = 'add [a]pache licence' }, + { 'balg', 'AddGNULicence', desc = 'add [g]nu GP License v3' }, + { 'balA', 'AddAGPLicence', desc = 'add GNU [A]ffero GP License v3' }, + { 'ball', 'AddLGPLLicence', desc = 'add GNU [L]esser GP License' }, + { 'balM', 'AddMPLLicence', desc = 'add [M]ozilla Public License' }, + { 'balw', 'AddWTFPLLicence', desc = 'add [W]TFPL License' }, + { 'balz', 'AddZlibLicence', desc = 'add [z]lib License' }, + }, config = true, + init = function() + vim.g.header_field_author = 'Jeff Lance' + vim.g.header_field_author_email = 'email@jefflance.me' + vim.g.header_auto_update_header = 1 + vim.g.header_field_filename_path = 1 + vim.g.header_field_timestamp_format = '%d.%m.%Y %H:%M:%S' + end, }, } diff --git a/lua/kickstart/plugins/latex.lua b/lua/kickstart/plugins/latex.lua new file mode 100644 index 0000000..0f9652e --- /dev/null +++ b/lua/kickstart/plugins/latex.lua @@ -0,0 +1,19 @@ +-- latex +-- +-- + +vim.g.maplocalleader = ' ' -- we define a leader available only from tex files + +return { + { + 'lervag/vimtex', + lazy = false, -- lazy-loading will disable inverse search + config = function() + vim.g.vimtex_mappings_disable = { ['n'] = { 'K' } } -- disable `K` as it conflicts with LSP hover + vim.g.vimtex_quickfix_method = vim.fn.executable 'pplatex' == 1 and 'pplatex' or 'latexlog' + end, + keys = { + { 'l', '', desc = 'LaTeX', ft = 'tex' }, + }, + }, +} diff --git a/lua/kickstart/plugins/lsp.lua b/lua/kickstart/plugins/lsp.lua index a7e431d..4677e65 100644 --- a/lua/kickstart/plugins/lsp.lua +++ b/lua/kickstart/plugins/lsp.lua @@ -236,6 +236,11 @@ return { }, }, }, + texlab = { + keys = { + { 'K', '(vimtex-doc-package)', desc = 'Vimtex Docs', silent = true }, + }, + }, } -- Ensure the servers and tools above are installed