diff --git a/lua/plugins.lua b/lua/plugins.lua index 2b4fae9..249353a 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -18,57 +18,66 @@ end return { { - 'rose-pine/neovim', - name = 'rose-pine', + "rose-pine/neovim", + name = "rose-pine", }, { - 'sainnhe/everforest', + "sainnhe/everforest", init = function() vim.g.everforest_better_performance = 1 vim.g.everforest_dim_inactive_windows = 1 end, - config = function() vim.cmd [[colorscheme everforest]] end - }, - { - 'L3MON4D3/LuaSnip', - version = 'v2.*', - build = 'make install_jsregexp', - dependencies = { 'rafamadriz/friendly-snippets' }, config = function() - require('luasnip.loaders.from_vscode').lazy_load() + vim.cmd([[colorscheme everforest]]) end, - ft = { 'lua' } }, { - 'hrsh7th/nvim-cmp', - config = function() require 'cmp-setup' end, - event = 'VeryLazy', + "L3MON4D3/LuaSnip", + version = "v2.*", + build = "make install_jsregexp", + dependencies = { "rafamadriz/friendly-snippets" }, + config = function() + require("luasnip.loaders.from_vscode").lazy_load() + end, + ft = { "lua" }, + }, + { + "hrsh7th/nvim-cmp", + config = function() + require("cmp-setup") + end, + event = "VeryLazy", dependencies = { - 'saadparwaiz1/cmp_luasnip', - 'hrsh7th/cmp-nvim-lsp', - 'hrsh7th/cmp-buffer', - 'hrsh7th/cmp-path', - 'hrsh7th/cmp-cmdline', - } + "saadparwaiz1/cmp_luasnip", + "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-path", + "hrsh7th/cmp-cmdline", + }, }, - 'lukas-reineke/cmp-under-comparator', + "lukas-reineke/cmp-under-comparator", { - 'neovim/nvim-lspconfig', - config = function() require 'lsp-setup' end, + "neovim/nvim-lspconfig", + config = function() + require("lsp-setup") + end, event = { "BufReadPre", "BufNewFile" }, - dependencies = { { - 'williamboman/mason.nvim', - config = true - }, { "williamboman/mason-lspconfig.nvim", config = true }, } + dependencies = { + { + "williamboman/mason.nvim", + config = true, + }, + { "williamboman/mason-lspconfig.nvim", config = true }, + }, }, { "pmizio/typescript-tools.nvim", dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" }, opts = {}, - event = { "BufReadPre", "BufNewFile" } + event = { "BufReadPre", "BufNewFile" }, }, { - 'folke/neodev.nvim', + "folke/neodev.nvim", opts = { override = function(_, library) library.enabled = true @@ -76,7 +85,7 @@ return { end, }, enabled = not hasversion(0, 10), - lazy = false + lazy = false, }, { "folke/lazydev.nvim", @@ -89,49 +98,49 @@ return { enabled = hasversion(0, 10), }, { "Bilal2453/luvit-meta", lazy = true }, - 'simrat39/rust-tools.nvim', - 'mfussenegger/nvim-dap', + "simrat39/rust-tools.nvim", + "mfussenegger/nvim-dap", { - 'numToStr/Comment.nvim', - opts = {} + "numToStr/Comment.nvim", + opts = {}, }, { - 'NeogitOrg/neogit', - version = 'v0.0.1', + "NeogitOrg/neogit", + version = "v0.0.1", dependencies = { - 'nvim-lua/plenary.nvim', - 'nvim-telescope/telescope.nvim', - 'sindrets/diffview.nvim', + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim", + "sindrets/diffview.nvim", }, config = true, - cmd = { 'Neogit' } + cmd = { "Neogit" }, }, { - 'ahmedkhalf/project.nvim', + "ahmedkhalf/project.nvim", opts = {}, config = function(_, opts) - require 'gitsigns'.setup(opts) + require("gitsigns").setup(opts) end, - event = 'VeryLazy' + event = "VeryLazy", }, { - 'lambdalisue/suda.vim', - cmd = { 'SudaRead', 'SudaWrite' } + "lambdalisue/suda.vim", + cmd = { "SudaRead", "SudaWrite" }, }, { - 'kylechui/nvim-surround', - version = '*', + "kylechui/nvim-surround", + version = "*", opts = {}, }, { - 'nvim-treesitter/nvim-treesitter', + "nvim-treesitter/nvim-treesitter", config = function() - require 'nvim-treesitter.configs'.setup({ - ensure_installed = { 'c', 'lua', 'vim', 'vimdoc', 'query', 'rust', 'cpp' } + require("nvim-treesitter.configs").setup({ + ensure_installed = { "c", "lua", "vim", "vimdoc", "query", "rust", "cpp" }, }) end, build = function() - local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) + local ts_update = require("nvim-treesitter.install").update({ with_sync = true }) ts_update() end, }, @@ -145,18 +154,17 @@ return { }, opts = { filesystem = { - hijack_netrw_behavior = "open_default" - } + hijack_netrw_behavior = "open_default", + }, }, keys = { - { '', 'Neotree', desc = 'View files', mode = { 'n', 'i', 'x' } } + { "", "Neotree", desc = "View files", mode = { "n", "i", "x" } }, }, - lazy = false + lazy = false, }, - 'direnv/direnv.vim', + "direnv/direnv.vim", { - 'folke/which-key.nvim', - event = 'VeryLazy', + "folke/which-key.nvim", opts = { delay = function(ctx) return ctx.plugin and 100 or 200 @@ -164,18 +172,18 @@ return { }, keys = { { - '?', + "?", function() - require('which-key').show({ global = false }) + require("which-key").show({ global = false }) end, - desc = 'Buffer Local Keymaps', + desc = "Buffer Local Keymaps", }, { - '', + "", function() - require('which-key').show({ global = true }) + require("which-key").show({ global = true }) end, - desc = 'All Keymaps', + desc = "All Keymaps", }, }, lazy = false, @@ -197,20 +205,20 @@ return { end, }, { - 'nvim-lualine/lualine.nvim', - dependencies = { 'nvim-tree/nvim-web-devicons' }, - opts = {} + "nvim-lualine/lualine.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = {}, }, { - 'akinsho/bufferline.nvim', + "akinsho/bufferline.nvim", version = "*", - dependencies = 'nvim-tree/nvim-web-devicons', + dependencies = "nvim-tree/nvim-web-devicons", opts = { options = { - mode = 'tabs', - separator_style = "slant" - } - } + mode = "tabs", + separator_style = "slant", + }, + }, }, { "stevearc/conform.nvim", @@ -238,66 +246,73 @@ return { event = "VeryLazy", }, { + "folke/trouble.nvim", opts = {}, - cmd = 'Trouble', + cmd = "Trouble", keys = { { - 'xx', - 'Trouble diagnostics toggle', - desc = 'Diagnostics (Trouble)', + "xx", + "Trouble diagnostics toggle", + desc = "Diagnostics (Trouble)", }, { - 'xX', - 'Trouble diagnostics toggle filter.buf=0', - desc = 'Buffer Diagnostics (Trouble)', + "xX", + "Trouble diagnostics toggle filter.buf=0", + desc = "Buffer Diagnostics (Trouble)", }, { - 'xcs', - 'Trouble symbols toggle focus=false', - desc = 'Symbols (Trouble)', + "xcs", + "Trouble symbols toggle focus=false", + desc = "Symbols (Trouble)", }, { - 'xcl', - 'Trouble lsp toggle focus=false win.position=right', - desc = 'LSP Definitions / references / ... (Trouble)', + "xcl", + "Trouble lsp toggle focus=false win.position=right", + desc = "LSP Definitions / references / ... (Trouble)", }, { - 'xL', - 'Trouble loclist toggle', - desc = 'Location List (Trouble)', + "xL", + "Trouble loclist toggle", + desc = "Location List (Trouble)", }, { - 'xQ', - 'Trouble qflist toggle', - desc = 'Quickfix List (Trouble)', + "xQ", + "Trouble qflist toggle", + desc = "Quickfix List (Trouble)", }, }, }, { - 'lewis6991/gitsigns.nvim', + "lewis6991/gitsigns.nvim", opts = { - current_line_blame = true + current_line_blame = true, }, - event = 'VeryLazy' + event = "VeryLazy", }, { - 'folke/zen-mode.nvim', + "folke/zen-mode.nvim", keys = { - { 'zt', function() require 'zen-mode'.toggle() end, desc = 'Toggle zen mode' } + { + "zt", + function() + require("zen-mode").toggle() + end, + desc = "Toggle zen mode", + }, }, opts = { window = { options = { relativenumber = false, - number = false - } - } - } + number = false, + }, + }, + }, }, { - 'folke/twilight.nvim', + "folke/twilight.nvim", opts = {}, - cmd = { 'Twilight', 'TwilightEnable', 'TwilightDisable' } + cmd = { "Twilight", "TwilightEnable", "TwilightDisable" }, }, { "CWood-sdf/spaceport.nvim", diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 282c9e6..0c06657 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -1,21 +1,21 @@ return { { - 'nvim-telescope/telescope.nvim', + "nvim-telescope/telescope.nvim", keys = { - { 'Tgb', 'Telescope git_branches', desc = 'branches' }, - { 'Tb', 'Telescope buffers', desc = 'buffers' }, - { 'Tfg', 'Telescope live_grep', desc = 'ripgrep' }, - { 'Tff', 'Telescope find_files', desc = 'files' }, - { 's', 'Telescope lsp_workspace_symbols', desc = 'workspace symbols' }, - { 'S', 'Telescope lsp_document_symbols', desc = 'document symbols' }, + { "Tgb", "Telescope git_branches", desc = "branches" }, + { "Tb", "Telescope buffers", desc = "buffers" }, + { "Tfg", "Telescope live_grep", desc = "ripgrep" }, + { "Tff", "Telescope find_files", desc = "files" }, + { "s", "Telescope lsp_workspace_symbols", desc = "workspace symbols" }, + { "S", "Telescope lsp_document_symbols", desc = "document symbols" }, }, config = function(_, opts) require("telescope").setup(opts) end, }, { - 'stevearc/dressing.nvim', + "stevearc/dressing.nvim", opts = {}, - event = 'VeryLazy' - } + event = "VeryLazy", + }, }