diff --git a/lua/custom/plugins/bufferline.lua b/lua/custom/plugins/bufferline.lua new file mode 100644 index 00000000..860fcddb --- /dev/null +++ b/lua/custom/plugins/bufferline.lua @@ -0,0 +1,23 @@ +return { + { + 'akinsho/bufferline.nvim', + version = "v3.*", + dependencies = { + 'nvim-tree/nvim-web-devicons' + }, + opts = {}, + config = function() + require('bufferline').setup { + options = { + numbers = 'none', + close_command = 'Bdelete! %d', + right_mouse_command = 'Bdelete! %d', + indicator = { + style = 'icon', + }, + -- separator_style = 'slant', + } + } + end, + }, +} diff --git a/lua/custom/plugins/cloak.lua b/lua/custom/plugins/cloak.lua new file mode 100644 index 00000000..6fca9431 --- /dev/null +++ b/lua/custom/plugins/cloak.lua @@ -0,0 +1,26 @@ +return { + "laytan/cloak.nvim", + version = "*", + config = function() + require("cloak").setup { + enabled = true, + cloak_character = '*', + -- The applied highlight group (colors) on the cloaking, see `:h highlight`. + highlight_group = 'Comment', + -- Applies the length of the replacement characters for all matched + -- patterns, defaults to the length of the matched pattern. + cloak_length = nil, -- Provide a number if you want to hide the true length of the value. + patterns = { + { + -- Match any file starting with '.env'. + -- This can be a table to match multiple file patterns. + file_pattern = '.env*', + -- Match an equals sign and any character after it. + -- This can also be a table of patterns to cloak, + -- example: cloak_pattern = { ':.+', '-.+' } for yaml files. + cloak_pattern = '=.+' + }, + }, + } + end, +} diff --git a/lua/custom/plugins/colors.lua b/lua/custom/plugins/colors.lua new file mode 100644 index 00000000..c4a81b5a --- /dev/null +++ b/lua/custom/plugins/colors.lua @@ -0,0 +1,13 @@ +return { + 'folke/tokyonight.nvim', + lazy = false, + priority = 999, + config = function() + require('tokyonight').setup { + style = 'storm', + transparent = true, + } + + vim.cmd.colorscheme 'tokyonight' + end, +} diff --git a/lua/custom/plugins/filetree.lua b/lua/custom/plugins/filetree.lua new file mode 100644 index 00000000..51416a66 --- /dev/null +++ b/lua/custom/plugins/filetree.lua @@ -0,0 +1,27 @@ +return { + "nvim-neo-tree/neo-tree.nvim", + version = "*", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim", + }, + config = function() + -- Unless you are still migrating, remove the deprecated commands from v1.x + vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]]) + + require('neo-tree').setup { + window = { + position = "float", + }, + filesystem = { + filtered_items = { + visible = true, + hide_dotfiles = false, + hide_gitignored = false, + }, + hijack_netrw_behavior = "open_current", + }, + } + end, +} diff --git a/lua/custom/plugins/greeter.lua b/lua/custom/plugins/greeter.lua new file mode 100644 index 00000000..b2f6b287 --- /dev/null +++ b/lua/custom/plugins/greeter.lua @@ -0,0 +1,10 @@ +return { + "goolord/alpha-nvim", + version = "*", + dependencies = { + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + }, + config = function() + require('alpha').setup(require('alpha.themes.dashboard').config) + end, +} diff --git a/lua/custom/plugins/indent-blankline.lua b/lua/custom/plugins/indent-blankline.lua new file mode 100644 index 00000000..63b30c05 --- /dev/null +++ b/lua/custom/plugins/indent-blankline.lua @@ -0,0 +1,8 @@ +return { + 'lukas-reineke/indent-blankline.nvim', + opts = { + char = '┊', + show_trailing_blankline_indent = false, + show_current_context = true, + }, +} diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d8..f140c790 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -2,4 +2,20 @@ -- I promise not to create any merge conflicts in this directory :) -- -- See the kickstart.nvim README for more information -return {} +return { + "nvim-treesitter/playground", + "nvim-treesitter/nvim-treesitter-context", + "theprimeagen/harpoon", + "mbbill/undotree", + "windwp/nvim-autopairs", + "RRethy/vim-illuminate", + "ahmedkhalf/project.nvim", + "famiu/bufdelete.nvim", + + { + "folke/trouble.nvim", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + } +} diff --git a/lua/custom/plugins/null-ls.lua b/lua/custom/plugins/null-ls.lua new file mode 100644 index 00000000..467b5934 --- /dev/null +++ b/lua/custom/plugins/null-ls.lua @@ -0,0 +1,20 @@ +return { + "jose-elias-alvarez/null-ls.nvim", + version = "*", + dependencies = { + "nvim-lua/plenary.nvim", + }, + config = function() + local null_ls = require("null-ls") + null_ls.setup { + sources = { + null_ls.builtins.formatting.prettier, + null_ls.builtins.formatting.black, + null_ls.builtins.formatting.latexindent, + null_ls.builtins.formatting.shfmt, + null_ls.builtins.code_actions.shellcheck, + null_ls.builtins.diagnostics.shellcheck, + }, + } + end, +} diff --git a/lua/custom/plugins/term.lua b/lua/custom/plugins/term.lua new file mode 100644 index 00000000..6ca58d87 --- /dev/null +++ b/lua/custom/plugins/term.lua @@ -0,0 +1,16 @@ +return { + { + 'akinsho/toggleterm.nvim', + version = "*", + opts = {}, + config = function() + require('toggleterm').setup { + open_mapping = [[]], + persist_mode = true, + direction = 'float', + shell = 'zsh', + close_on_exit = true, + } + end, + }, +} diff --git a/lua/custom/plugins/zenmode.lua b/lua/custom/plugins/zenmode.lua new file mode 100644 index 00000000..cf517cc9 --- /dev/null +++ b/lua/custom/plugins/zenmode.lua @@ -0,0 +1,15 @@ +return { + "folke/zen-mode.nvim", + version = "*", + config = function() + require("zen-mode").setup { + window = { + backdrop = 0.8, + width = 100, + }, + plugins = { + gitsigns = { enabled = false }, + }, + } + end, +}