From 283d88b74e3a0b3d49b6907fd57fe1c35ee48f64 Mon Sep 17 00:00:00 2001 From: Kelvin Oenning Date: Wed, 17 Apr 2024 08:35:14 -0300 Subject: [PATCH] initial --- lua/config/keymaps.lua | 6 ++++++ lua/config/options.lua | 1 + lua/plugins/bufferline.lua | 4 ++++ lua/plugins/colorscheme.lua | 9 +++++++++ lua/plugins/example.lua | 35 ++++++++++++++++------------------- lua/plugins/git-blame.lua | 10 ++++++++++ lua/plugins/neo-tree.lua | 12 ++++++++++++ lua/plugins/telescope.lua | 21 +++++++++++++++++++++ 8 files changed, 79 insertions(+), 19 deletions(-) create mode 100644 lua/plugins/bufferline.lua create mode 100644 lua/plugins/colorscheme.lua create mode 100644 lua/plugins/git-blame.lua create mode 100644 lua/plugins/neo-tree.lua create mode 100644 lua/plugins/telescope.lua diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 2c134f7..0a52486 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -1,3 +1,9 @@ -- Keymaps are automatically loaded on the VeryLazy event -- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua -- Add any additional keymaps here +local keymap = vim.keymap +local defaultOpts = { noremap = true, silent = true } + +-- -- Split Window +keymap.set("n", "ss", ":split", defaultOpts) +keymap.set("n", "sv", ":vsplit", defaultOpts) diff --git a/lua/config/options.lua b/lua/config/options.lua index 3ea1454..f8b335b 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -1,3 +1,4 @@ -- Options are automatically loaded before lazy.nvim startup -- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua -- Add any additional options here +vim.opt.relativenumber = false diff --git a/lua/plugins/bufferline.lua b/lua/plugins/bufferline.lua new file mode 100644 index 0000000..fc22dde --- /dev/null +++ b/lua/plugins/bufferline.lua @@ -0,0 +1,4 @@ +return { + "akinsho/bufferline.nvim", + enabled = false, +} diff --git a/lua/plugins/colorscheme.lua b/lua/plugins/colorscheme.lua new file mode 100644 index 0000000..6a82c5c --- /dev/null +++ b/lua/plugins/colorscheme.lua @@ -0,0 +1,9 @@ +return { + { "ellisonleao/gruvbox.nvim" }, + { + "LazyVim/LazyVim", + opts = { + colorscheme = "gruvbox", + }, + }, +} diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index de22bc8..e7e5c39 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -30,6 +30,14 @@ return { -- disable trouble { "folke/trouble.nvim", enabled = false }, + -- add symbols-outline + { + "simrat39/symbols-outline.nvim", + cmd = "SymbolsOutline", + keys = { { "cs", "SymbolsOutline", desc = "Symbols Outline" } }, + config = true, + }, + -- override nvim-cmp and add cmp-emoji { "hrsh7th/nvim-cmp", @@ -40,26 +48,15 @@ return { end, }, - -- change some telescope options and a keymap to browse plugin files + -- add telescope-fzf-native { - "nvim-telescope/telescope.nvim", - keys = { - -- add a keymap to browse plugin files - -- stylua: ignore - { - "fp", - function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end, - desc = "Find Plugin File", - }, - }, - -- change some options - opts = { - defaults = { - layout_strategy = "horizontal", - layout_config = { prompt_position = "top" }, - sorting_strategy = "ascending", - winblend = 0, - }, + "telescope.nvim", + dependencies = { + "nvim-telescope/telescope-fzf-native.nvim", + build = "make", + config = function() + require("telescope").load_extension("fzf") + end, }, }, diff --git a/lua/plugins/git-blame.lua b/lua/plugins/git-blame.lua new file mode 100644 index 0000000..d9bcc3a --- /dev/null +++ b/lua/plugins/git-blame.lua @@ -0,0 +1,10 @@ +return { + "f-person/git-blame.nvim", + keys = { + { + "gb", + ":GitBlameToggle", + desc = "Toggle Git Blame", + }, + }, +} diff --git a/lua/plugins/neo-tree.lua b/lua/plugins/neo-tree.lua new file mode 100644 index 0000000..acf648b --- /dev/null +++ b/lua/plugins/neo-tree.lua @@ -0,0 +1,12 @@ +return { + "nvim-neo-tree/neo-tree.nvim", + opts = { + filesystem = { + filtered_items = { + visible = true, -- This is what you want: If you set this to `true`, all "hide" just mean "dimmed out" + hide_dotfiles = false, + hide_gitignored = false, + }, + }, + }, +} diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..71d36d3 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,21 @@ +return { + "nvim-telescope/telescope.nvim", + keys = { + -- add a keymap to browse plugin files + -- stylua: ignore + { + "fp", + function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end, + desc = "Find Plugin File", + }, + }, + -- change some options + opts = { + defaults = { + layout_strategy = "horizontal", + layout_config = { prompt_position = "top" }, + sorting_strategy = "ascending", + winblend = 0, + }, + }, +}