From b3f66419d5a9c0437afff867b522cd0ffa8c5ef0 Mon Sep 17 00:00:00 2001 From: jensonjohnathon <108676720+jensonjohnathon@users.noreply.github.com> Date: Sun, 6 Oct 2024 15:27:16 +0200 Subject: [PATCH 1/9] added go --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index ea86b792abe..29255d9fa6a 100644 --- a/init.lua +++ b/init.lua @@ -888,7 +888,7 @@ require('lazy').setup({ main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { - ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc' }, + ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'go' }, -- Autoinstall languages that are not installed auto_install = true, highlight = { From a8276b207afe3485a1966e521c9da952c31dca1d Mon Sep 17 00:00:00 2001 From: jensonjohnathon Date: Thu, 3 Apr 2025 15:04:42 +0200 Subject: [PATCH 2/9] Switched colorscheme to cyberdream and added support for copy pasting via wl-clipboard --- init.lua | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 21f46f65c91..9c48fd222f4 100644 --- a/init.lua +++ b/init.lua @@ -118,6 +118,19 @@ vim.schedule(function() vim.opt.clipboard = 'unnamedplus' end) +vim.g.clipboard = { + name = 'wl-clipboard', + copy = { + ['+'] = 'wl-copy', + ['*'] = 'wl-copy', + }, + paste = { + ['+'] = 'wl-paste', + ['*'] = 'wl-paste', + }, + cache_enabled = true, +} + -- Enable break indent vim.opt.breakindent = true @@ -898,11 +911,13 @@ require('lazy').setup({ -- change the command in the config to whatever the name of that colorscheme is. -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. - 'folke/tokyonight.nvim', + -- 'folke/tokyonight.nvim', + -- 'navarasu/onedark.nvim', + 'scottmckendry/cyberdream.nvim', priority = 1000, -- Make sure to load this before all the other start plugins. config = function() ---@diagnostic disable-next-line: missing-fields - require('tokyonight').setup { + require('cyberdream').setup { styles = { comments = { italic = false }, -- Disable italics in comments }, @@ -911,7 +926,7 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + vim.cmd.colorscheme 'cyberdream' end, }, From 806fdc8e93b0019d572f97b94cb20011312b3b04 Mon Sep 17 00:00:00 2001 From: jensonjohnathon Date: Fri, 4 Apr 2025 08:21:02 +0200 Subject: [PATCH 3/9] Added mdx Support via custom plugin --- init.lua | 3 ++- lua/custom/plugins/init.lua | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 9c48fd222f4..aa654b12888 100644 --- a/init.lua +++ b/init.lua @@ -1016,7 +1016,8 @@ require('lazy').setup({ -- This is the easiest way to modularize your config. -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. - -- { import = 'custom.plugins' }, + { import = 'custom.plugins' }, + -- -- For additional information with loading, sourcing and examples see `:help lazy.nvim-πŸ”Œ-plugin-spec` -- Or use telescope! diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8d7a..db658aad170 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,13 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + { + 'davidmh/mdx.nvim', + dependencies = { 'nvim-treesitter/nvim-treesitter' }, + lazy = false, + config = function() + require('mdx').setup() + end, + }, +} From 343bfa3f5829bd519fe01da3ae50d07136a651ed Mon Sep 17 00:00:00 2001 From: Jenson Reggentin <108676720+jensonjohnathon@users.noreply.github.com> Date: Fri, 4 Apr 2025 14:16:05 +0200 Subject: [PATCH 4/9] Update README.md Changed urls to my fork --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8ace8b9b22b..875b65d0ce3 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ fork to your machine using one of the commands below, depending on your OS. > [!NOTE] > Your fork's URL will be something like this: -> `https://github.com//kickstart.nvim.git` +> `https://github.com//kickstart.nvim.jenson` You likely want to remove `lazy-lock.json` from your fork's `.gitignore` file too - it's ignored in the kickstart repo to make maintenance easier, but it's @@ -73,7 +73,7 @@ too - it's ignored in the kickstart repo to make maintenance easier, but it's
Linux and Mac ```sh -git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim +git clone https://github.com/jensonjohnathon/kickstart.nvim.jenson "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim ```
@@ -83,13 +83,13 @@ git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HO If you're using `cmd.exe`: ``` -git clone https://github.com/nvim-lua/kickstart.nvim.git "%localappdata%\nvim" +git clone https://github.com/jensonjohnathon/kickstart.nvim.jenson "%localappdata%\nvim" ``` If you're using `powershell.exe` ``` -git clone https://github.com/nvim-lua/kickstart.nvim.git "${env:LOCALAPPDATA}\nvim" +git clone https://github.com/jensonjohnathon/kickstart.nvim.jenson "${env:LOCALAPPDATA}\nvim" ``` @@ -146,8 +146,8 @@ examples of adding popularly requested plugins. same functionality is available here: * [kickstart-modular.nvim](https://github.com/dam9000/kickstart-modular.nvim) * Discussions on this topic can be found here: - * [Restructure the configuration](https://github.com/nvim-lua/kickstart.nvim/issues/218) - * [Reorganize init.lua into a multi-file setup](https://github.com/nvim-lua/kickstart.nvim/pull/473) + * [Restructure the configuration](https://github.com/jensonjohnathon/kickstart.nvim/issues/218) + * [Reorganize init.lua into a multi-file setup](https://github.com/jensonjohnathon/kickstart.nvim/pull/473) ### Install Recipes From e88815ad0871e3e8d85159f5c60ace7d8c5b7ae6 Mon Sep 17 00:00:00 2001 From: jensonjohnathon Date: Fri, 4 Apr 2025 15:11:49 +0200 Subject: [PATCH 5/9] Added LSP for Go and some Fromatters --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index aa654b12888..1d84b66b1e2 100644 --- a/init.lua +++ b/init.lua @@ -683,7 +683,7 @@ require('lazy').setup({ -- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/ local servers = { -- clangd = {}, - -- gopls = {}, + gopls = {}, -- pyright = {}, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs From c1120083540d366627d11a4a7bb053ae42d5b5fb Mon Sep 17 00:00:00 2001 From: jensonjohnathon Date: Thu, 31 Jul 2025 11:14:36 +0200 Subject: [PATCH 6/9] Fixed Config needs nightly for plugins currently running fine on: NVIM v0.12.0-dev-914+gb79ff967ac Build type: RelWithDebInfo --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 131d0367d5f..c1524cdc9e9 100644 --- a/init.lua +++ b/init.lua @@ -495,8 +495,8 @@ require('lazy').setup({ -- Automatically install LSPs and related tools to stdpath for Neovim -- Mason must be loaded before its dependents so we need to set it up here. -- NOTE: `opts = {}` is the same as calling `require('mason').setup({})` - { 'mason-org/mason.nvim', opts = {} }, - 'mason-org/mason-lspconfig.nvim', + { 'williamboman/mason.nvim', opts = {} }, + 'williamboman/mason-lspconfig.nvim', 'WhoIsSethDaniel/mason-tool-installer.nvim', -- Useful status updates for LSP. From fed5dbb88124a6f256ba842a36c26cf9c24d9c2a Mon Sep 17 00:00:00 2001 From: jensonjohnathon Date: Mon, 15 Sep 2025 14:53:34 +0200 Subject: [PATCH 7/9] =?UTF-8?q?Lua=20Snippets=20f=C3=BCr=20Latex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaSnip/all.lua | 8 ++++++++ init.lua | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 LuaSnip/all.lua diff --git a/LuaSnip/all.lua b/LuaSnip/all.lua new file mode 100644 index 00000000000..ca2efbdd569 --- /dev/null +++ b/LuaSnip/all.lua @@ -0,0 +1,8 @@ +return { + -- A snippet that expands the trigger "hi" into the string "Hello, world!". + require('luasnip').snippet({ trig = 'hi' }, { t 'Hello, world!' }), + + -- To return multiple snippets, use one `return` statement per snippet file + -- and return a table of Lua snippets. + require('luasnip').snippet({ trig = 'foo' }, { t 'Another snippet.' }), +} diff --git a/init.lua b/init.lua index b98ffc6198a..be4296ee553 100644 --- a/init.lua +++ b/init.lua @@ -244,6 +244,18 @@ rtp:prepend(lazypath) -- To update plugins you can run -- :Lazy update -- +-- Yes, we're just executing a bunch of Vimscript, but this is the officially +-- endorsed method; see https://github.com/L3MON4D3/LuaSnip#keymaps +vim.cmd [[ +" Use Tab to expand and jump through snippets +imap luasnip#expand_or_jumpable() ? 'luasnip-expand-or-jump' : '' +smap luasnip#jumpable(1) ? 'luasnip-jump-next' : '' + +" Use Shift-Tab to jump backwards through snippets +imap luasnip#jumpable(-1) ? 'luasnip-jump-prev' : '' +smap luasnip#jumpable(-1) ? 'luasnip-jump-prev' : '' +]] + -- NOTE: Here is where you install your plugins. require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). @@ -266,6 +278,32 @@ require('lazy').setup({ -- }) -- end, -- } + -- LuaSnip (Snippet Engine) + { + 'L3MON4D3/LuaSnip', + version = 'v2.*', -- stabile Version + build = 'make install_jsregexp', -- optional, fΓΌr advanced regex + config = function() + local luasnip = require 'luasnip' + -- Lade VSCode-kompatible Snippets, falls du welche hast + require('luasnip.loaders.from_vscode').lazy_load() + require('luasnip.loaders.from_lua').load { paths = '~/.config/nvim/LuaSnip/' } + + -- einfache Keymaps + vim.keymap.set({ 'i' }, '', function() + luasnip.expand() + end, { silent = true }) + vim.keymap.set({ 'i', 's' }, '', function() + luasnip.jump(1) + end, { silent = true }) + vim.keymap.set({ 'i', 's' }, '', function() + luasnip.jump(-1) + end, { silent = true }) + end, + }, + + -- Optionale Snippet-Sammlung + { 'rafamadriz/friendly-snippets' }, -- -- Here is a more advanced example where we pass configuration -- options to `gitsigns.nvim`. From 80b44e09ddb4ed9cb6fe5dc33f6507f9180beb38 Mon Sep 17 00:00:00 2001 From: jensonjohnathon Date: Mon, 15 Sep 2025 15:25:28 +0200 Subject: [PATCH 8/9] Snippets --- LuaSnip/Readme.md | 10 ++++++++++ init.lua | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 LuaSnip/Readme.md diff --git a/LuaSnip/Readme.md b/LuaSnip/Readme.md new file mode 100644 index 00000000000..cb3e5af1575 --- /dev/null +++ b/LuaSnip/Readme.md @@ -0,0 +1,10 @@ +# Example LuaSnip directory structure +${HOME}/.config/nvim/LuaSnip/ +β”œβ”€β”€ all.lua +β”œβ”€β”€ markdown.lua +β”œβ”€β”€ python.lua +└── tex + β”œβ”€β”€ delimiters.lua + β”œβ”€β”€ environments.lua + β”œβ”€β”€ fonts.lua + └── math.lua diff --git a/init.lua b/init.lua index 34351e7ddc8..315ec407fe3 100644 --- a/init.lua +++ b/init.lua @@ -302,6 +302,14 @@ require('lazy').setup({ require('luasnip.loaders.from_vscode').lazy_load() require('luasnip.loaders.from_lua').load { paths = '~/.config/nvim/LuaSnip/' } + require('luasnip').config.set_config { -- Setting LuaSnip config + + -- Enable autotriggered snippets + enable_autosnippets = true, + + -- Use Tab (or some other key if you prefer) to trigger visual selection + store_selection_keys = '', + } -- einfache Keymaps vim.keymap.set({ 'i' }, '', function() luasnip.expand() From 308995c0e2bc698bf051f0add68289eda0b76371 Mon Sep 17 00:00:00 2001 From: jensonjohnathon Date: Tue, 16 Sep 2025 08:41:36 +0200 Subject: [PATCH 9/9] Treesitter fix and Snippets --- init.lua | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 315ec407fe3..e80dadebe51 100644 --- a/init.lua +++ b/init.lua @@ -269,6 +269,10 @@ imap luasnip#jumpable(-1) ? 'luasnip-jump-prev' : ' smap luasnip#jumpable(-1) ? 'luasnip-jump-prev' : '' ]] +vim.cmd [[ + filetype plugin indent on +]] + -- NOTE: Here is where you install your plugins. require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). @@ -291,6 +295,16 @@ require('lazy').setup({ -- }) -- end, -- } + { + 'lervag/vimtex', + ft = { 'tex', 'plaintex', 'latex' }, -- lazy-load nur bei TeX + init = function() + -- Viewer (WSL/Ubuntu mit WSLg): z.B. zathura + vim.g.vimtex_view_method = 'zathura' -- Alternativen: "sioyek", "skim"(mac), "sumatrapdf"(win), "general" + vim.g.vimtex_quickfix_mode = 0 -- Quickfix nur bei echten Fehlern, nicht bei Warnungen + -- optional: lokaler Leader in TeX-Buffern + end, + }, -- LuaSnip (Snippet Engine) { 'L3MON4D3/LuaSnip', @@ -1003,9 +1017,12 @@ require('lazy').setup({ 'nvim-treesitter/nvim-treesitter', build = ':TSUpdate', main = 'nvim-treesitter.configs', -- Sets main module to use for opts + init = function() + require('nvim-treesitter.install').prefer_git = false + end, -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { - ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'go' }, + ensure_installed = { 'bash', 'c', 'diff', 'html', 'lua', 'luadoc', 'markdown', 'markdown_inline', 'query', 'vim', 'vimdoc', 'go', 'latex' }, -- Autoinstall languages that are not installed auto_install = true, highlight = {