From 56eb08964887473a8245605f4318defede0a5826 Mon Sep 17 00:00:00 2001 From: dpearre Date: Mon, 7 Oct 2024 22:30:43 -0700 Subject: [PATCH 1/4] Added friendly-snippets; added fugitive as popular git integration --- init.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/init.lua b/init.lua index 1991e0b7..34282d3d 100644 --- a/init.lua +++ b/init.lua @@ -282,6 +282,7 @@ vim.opt.rtp:prepend(lazypath) require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically + 'tpope/vim-fugitive', -- git integration 'mbbill/undotree', -- recommended undo history system { 'nvim-tree/nvim-tree.lua', @@ -810,12 +811,12 @@ require('lazy').setup({ -- `friendly-snippets` contains a variety of premade snippets. -- See the README about individual language/framework/plugin snippets: -- https://github.com/rafamadriz/friendly-snippets - -- { - -- 'rafamadriz/friendly-snippets', - -- config = function() - -- require('luasnip.loaders.from_vscode').lazy_load() - -- end, - -- }, + { + 'rafamadriz/friendly-snippets', + config = function() + require('luasnip.loaders.from_vscode').lazy_load() + end, + }, }, }, 'saadparwaiz1/cmp_luasnip', From 31bd2533a20e067acac88f69faa623510eb19e38 Mon Sep 17 00:00:00 2001 From: dpearre Date: Mon, 7 Oct 2024 08:21:34 -0700 Subject: [PATCH 2/4] Added vim-slime for piping code into external services --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 34282d3d..4d833994 100644 --- a/init.lua +++ b/init.lua @@ -283,6 +283,7 @@ require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically 'tpope/vim-fugitive', -- git integration + 'jpalardy/vim-slime', -- for piping code into external service like a REPL 'mbbill/undotree', -- recommended undo history system { 'nvim-tree/nvim-tree.lua', From 33b7e9735f53ad2ecf2ef49a4757ff048edf2afd Mon Sep 17 00:00:00 2001 From: dpearre Date: Mon, 7 Oct 2024 21:53:05 -0700 Subject: [PATCH 3/4] Refined vim-slime config --- init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/init.lua b/init.lua index 4d833994..0c53f2eb 100644 --- a/init.lua +++ b/init.lua @@ -285,6 +285,14 @@ require('lazy').setup({ 'tpope/vim-fugitive', -- git integration 'jpalardy/vim-slime', -- for piping code into external service like a REPL 'mbbill/undotree', -- recommended undo history system + { + 'jpalardy/vim-slime', -- for piping code into external service like a REPL + config = function() + vim.g.slime_target = 'tmux' + vim.g.slime_cell_delimiter = '# %%' + vim.g.slime_bracketed_paste = 1 + end, + }, { 'nvim-tree/nvim-tree.lua', requires = { From e07d377f5f5584d5483bae6fdae49a546376b4da Mon Sep 17 00:00:00 2001 From: dpearre Date: Mon, 14 Oct 2024 12:58:47 -0700 Subject: [PATCH 4/4] visual tweaks, thin 80/120 lines, transarent bg --- init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.lua b/init.lua index 0c53f2eb..8d2cb5d2 100644 --- a/init.lua +++ b/init.lua @@ -284,6 +284,9 @@ require('lazy').setup({ 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically 'tpope/vim-fugitive', -- git integration 'jpalardy/vim-slime', -- for piping code into external service like a REPL + 'godlygeek/tabular', + -- for showing the `colorcolumn` 80 and 120 reference lines as thin lines: + 'xiyaowong/virtcolumn.nvim', 'mbbill/undotree', -- recommended undo history system { 'jpalardy/vim-slime', -- for piping code into external service like a REPL @@ -929,6 +932,12 @@ require('lazy').setup({ -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. vim.cmd.colorscheme 'tokyonight-night' + vim.cmd [[ + highlight Normal guibg=none ctermbg=none + highlight NonText guibg=none ctermbg=none + highlight NormalNC guibg=none ctermbg=none + ]] + -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' end,