diff --git a/neovim/.config/nvim/lua/custom/plugins/auto-session.lua b/neovim/.config/nvim/lua/custom/plugins/auto-session.lua new file mode 100644 index 0000000..5d8b6ec --- /dev/null +++ b/neovim/.config/nvim/lua/custom/plugins/auto-session.lua @@ -0,0 +1,12 @@ +return { + 'rmagatti/auto-session', + lazy = false, + + ---enables autocomplete for opts + ---@module "auto-session" + ---@type AutoSession.Config + opts = { + suppressed_dirs = { '~/', '~/projects', '~/Downloads', '/' }, + -- log_level = 'debug', + }, +} diff --git a/neovim/.config/nvim/lua/custom/plugins/bufferline.lua b/neovim/.config/nvim/lua/custom/plugins/bufferline.lua new file mode 100644 index 0000000..24a81c0 --- /dev/null +++ b/neovim/.config/nvim/lua/custom/plugins/bufferline.lua @@ -0,0 +1,16 @@ +return { + 'akinsho/bufferline.nvim', + version = '*', + dependencies = 'nvim-tree/nvim-web-devicons', + config = function() + require('bufferline').setup { + options = { + hover = { + enabled = true, + delay = 150, + reveal = { 'close' }, + }, + }, + } + end, +} diff --git a/neovim/.config/nvim/lua/custom/plugins/presence.lua b/neovim/.config/nvim/lua/custom/plugins/presence.lua new file mode 100644 index 0000000..2aba507 --- /dev/null +++ b/neovim/.config/nvim/lua/custom/plugins/presence.lua @@ -0,0 +1,3 @@ +return { + 'andweeb/presence.nvim' +} diff --git a/neovim/.config/nvim/lua/custom/plugins/trouble.lua b/neovim/.config/nvim/lua/custom/plugins/trouble.lua new file mode 100644 index 0000000..360989e --- /dev/null +++ b/neovim/.config/nvim/lua/custom/plugins/trouble.lua @@ -0,0 +1,39 @@ +return { + { + 'folke/trouble.nvim', + opts = {}, -- for default options, refer to the configuration section for custom setup. + cmd = 'Trouble', + keys = { + { + 'tx', + 'Trouble diagnostics toggle', + desc = 'Diagnostics (Trouble)', + }, + --[[ { + 'xX', + 'Trouble diagnostics toggle filter.buf=0', + desc = 'Buffer Diagnostics (Trouble)', + }, + { + 'cs', + 'Trouble symbols toggle focus=false', + desc = 'Symbols (Trouble)', + }, + { + 'cl', + 'Trouble lsp toggle focus=false win.position=right', + desc = 'LSP Definitions / references / ... (Trouble)', + }, + { + 'xL', + 'Trouble loclist toggle', + desc = 'Location List (Trouble)', + }, + { + 'xQ', + 'Trouble qflist toggle', + desc = 'Quickfix List (Trouble)', + }, --]] + }, + }, +} diff --git a/neovim/.config/nvim/lua/keymaps.lua b/neovim/.config/nvim/lua/keymaps.lua index 054c769..c5cdf43 100644 --- a/neovim/.config/nvim/lua/keymaps.lua +++ b/neovim/.config/nvim/lua/keymaps.lua @@ -37,6 +37,9 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win -- vim.keymap.set("n", "", "J", { desc = "Move window to the lower" }) -- vim.keymap.set("n", "", "K", { desc = "Move window to the upper" }) +vim.keymap.set('n', '', 'Neotree toggle') +vim.keymap.set('n', '', 'BufferLineCycleNext') + -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` diff --git a/neovim/.config/nvim/lua/lazy-plugins.lua b/neovim/.config/nvim/lua/lazy-plugins.lua index 451b85e..c8a1a28 100644 --- a/neovim/.config/nvim/lua/lazy-plugins.lua +++ b/neovim/.config/nvim/lua/lazy-plugins.lua @@ -62,7 +62,7 @@ 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/neovim/.config/nvim/lua/options.lua b/neovim/.config/nvim/lua/options.lua index b904dcd..cda39f2 100644 --- a/neovim/.config/nvim/lua/options.lua +++ b/neovim/.config/nvim/lua/options.lua @@ -80,4 +80,6 @@ vim.o.smartindent = true vim.o.tabstop = 4 vim.o.shiftwidth = 4 +vim.o.termguicolors = true + -- vim: ts=2 sts=2 sw=2 et