From e35fd634b4b7d5205d48eafa9429236a0750da0a Mon Sep 17 00:00:00 2001 From: Wellinton Aracena Date: Tue, 12 Mar 2024 11:52:56 -0400 Subject: [PATCH] added notifications --- init.lua | 9 ++-- lua/custom/plugins/init.lua | 11 +++- lua/kickstart/plugins/indent_line.lua | 74 +++++++++++++++------------ 3 files changed, 55 insertions(+), 39 deletions(-) diff --git a/init.lua b/init.lua index dde0685a..c7aaeac2 100644 --- a/init.lua +++ b/init.lua @@ -170,10 +170,10 @@ vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagn vim.keymap.set('t', '', '', { desc = 'Exit terminal mode' }) -- TIP: Disable arrow keys in normal mode --- vim.keymap.set('n', '', 'echo "Use h to move!!"') --- vim.keymap.set('n', '', 'echo "Use l to move!!"') --- vim.keymap.set('n', '', 'echo "Use k to move!!"') --- vim.keymap.set('n', '', 'echo "Use j to move!!"') +vim.keymap.set('n', '', 'echo "Use h to move!!"') +vim.keymap.set('n', '', 'echo "Use l to move!!"') +vim.keymap.set('n', '', 'echo "Use k to move!!"') +vim.keymap.set('n', '', 'echo "Use j to move!!"') -- Keybinds to make split navigation easier. -- Use CTRL+ to switch between windows @@ -848,7 +848,6 @@ require('lazy').setup { -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` { import = 'custom.plugins' }, - vim.cmd 'set conceallevel=1', } -- The line beneath this is called `modeline`. See `:help modeline` diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index b36ac594..b918e08d 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -3,7 +3,14 @@ -- -- See the kickstart.nvim README for more information -- -return { + +local config = { + { + vim.cmd 'set conceallevel=1', + }, +} + +local plugins = { { 'jubnzv/mdeval.nvim', event = 'VeryLazy', @@ -29,3 +36,5 @@ return { end, }, } + +return plugins, config diff --git a/lua/kickstart/plugins/indent_line.lua b/lua/kickstart/plugins/indent_line.lua index bf0eca95..c63b3153 100644 --- a/lua/kickstart/plugins/indent_line.lua +++ b/lua/kickstart/plugins/indent_line.lua @@ -1,34 +1,42 @@ -return { - { -- Add indentation guides even on blank lines - 'lukas-reineke/indent-blankline.nvim', - -- Enable `lukas-reineke/indent-blankline.nvim` - -- See `:help ibl` - main = 'ibl', - config = function() - local highlight = { - 'RainbowRed', - 'RainbowYellow', - 'RainbowBlue', - 'RainbowOrange', - 'RainbowGreen', - 'RainbowViolet', - 'RainbowCyan', - } - - local hooks = require 'ibl.hooks' - -- create the highlight groups in the highlight setup hook, so they are reset - -- every time the colorscheme changes - hooks.register(hooks.type.HIGHLIGHT_SETUP, function() - vim.api.nvim_set_hl(0, 'RainbowRed', { fg = '#E06C75' }) - vim.api.nvim_set_hl(0, 'RainbowYellow', { fg = '#E5C07B' }) - vim.api.nvim_set_hl(0, 'RainbowBlue', { fg = '#61AFEF' }) - vim.api.nvim_set_hl(0, 'RainbowOrange', { fg = '#D19A66' }) - vim.api.nvim_set_hl(0, 'RainbowGreen', { fg = '#98C379' }) - vim.api.nvim_set_hl(0, 'RainbowViolet', { fg = '#C678DD' }) - vim.api.nvim_set_hl(0, 'RainbowCyan', { fg = '#56B6C2' }) - end) - - require('ibl').setup { indent = { highlight = highlight } } - end, - }, +local normal = { + 'lukas-reineke/indent-blankline.nvim', + main = 'ibl', + config = function() + require('ibl').setup() + end, } + +local color = { + -- Add indentation guides even on blank lines + 'lukas-reineke/indent-blankline.nvim', + -- Enable `lukas-reineke/indent-blankline.nvim` + -- See `:help ibl` + main = 'ibl', + config = function() + local highlight = { + 'RainbowRed', + 'RainbowYellow', + 'RainbowBlue', + 'RainbowOrange', + 'RainbowGreen', + 'RainbowViolet', + 'RainbowCyan', + } + + local hooks = require 'ibl.hooks' + -- create the highlight groups in the highlight setup hook, so they are reset + -- every time the colorscheme changes + hooks.register(hooks.type.HIGHLIGHT_SETUP, function() + vim.api.nvim_set_hl(0, 'RainbowRed', { fg = '#E06C75' }) + vim.api.nvim_set_hl(0, 'RainbowYellow', { fg = '#E5C07B' }) + vim.api.nvim_set_hl(0, 'RainbowBlue', { fg = '#61AFEF' }) + vim.api.nvim_set_hl(0, 'RainbowOrange', { fg = '#D19A66' }) + vim.api.nvim_set_hl(0, 'RainbowGreen', { fg = '#98C379' }) + vim.api.nvim_set_hl(0, 'RainbowViolet', { fg = '#C678DD' }) + vim.api.nvim_set_hl(0, 'RainbowCyan', { fg = '#56B6C2' }) + end) + + require('ibl').setup { indent = { highlight = highlight } } + end, +} +return color