diff options
-rw-r--r-- | after/plugin/gitsigns.lua | 11 | ||||
-rw-r--r-- | after/plugin/telescope.lua | 19 | ||||
-rw-r--r-- | lua/user/lazy.lua | 108 |
3 files changed, 69 insertions, 69 deletions
diff --git a/after/plugin/gitsigns.lua b/after/plugin/gitsigns.lua index e7ab463..b781fb6 100644 --- a/after/plugin/gitsigns.lua +++ b/after/plugin/gitsigns.lua @@ -9,13 +9,10 @@ require("gitsigns").setup({ }, on_attach = function(buffer) local gs = package.loaded.gitsigns + local map = vim.keymap.set - local function map(mode, l, r, desc) - vim.keymap.set(mode, l, r, { buffer = buffer, desc = desc }) - end - - -- stylua: ignore start - map("n", "]g", gs.next_hunk, "Next git hunk") - map("n", "[g", gs.prev_hunk, "Previous git hunk") + -- stylua: ignore start + map("n", "]g", gs.next_hunk, { desc = "Next git hunk" }) + map("n", "[g", gs.prev_hunk, { desc = "Previous git hunk" }) end, }) diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index cfefbbc..c0005ee 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,3 +1,4 @@ +local map = vim.keymap.set require("telescope").setup({ defaults = { path_display = { @@ -23,17 +24,17 @@ require("telescope").setup({ }) local builtin = require("telescope.builtin") -vim.keymap.set("n", "<leader>ff", builtin.find_files) -vim.keymap.set("n", "<leader><leader>", builtin.buffers) -vim.keymap.set("n", "<leader>fg", builtin.git_files) -vim.keymap.set("n", "<leader>fw", builtin.live_grep) -vim.keymap.set("n", "<C-p>", "<cmd>Telescope git_files<cr>", { desc = "Find git files" }) -vim.keymap.set("n", "<leader>vh", builtin.help_tags, { desc = "Find help tags" }) +map("n", " ff", builtin.find_files) +map("n", " ", builtin.buffers) +map("n", " fg", builtin.git_files) +map("n", " fw", builtin.live_grep) +map("n", "<C-p>", "<cmd>Telescope git_files<cr>", { desc = "Find git files" }) +map("n", " vh", builtin.help_tags, { desc = "Find help tags" }) -- symbols -vim.keymap.set("n", "<leader>tse", "<cmd>lua require'telescope.builtin'.symbols{ sources = {'emoji', 'gitmoji'} }<CR>") -vim.keymap.set("n", "<leader>tsn", "<cmd>lua require'telescope.builtin'.symbols{ sources = {'nerd'} }<CR>") -vim.keymap.set("n", "<leader>tsj", "<cmd>lua require'telescope.builtin'.symbols{ sources = {'julia'} }<CR>") +map("n", " tse", "<cmd>lua require'telescope.builtin'.symbols{ sources = {'emoji', 'gitmoji'} }<CR>") +map("n", " tsn", "<cmd>lua require'telescope.builtin'.symbols{ sources = {'nerd'} }<CR>") +map("n", " tsj", "<cmd>lua require'telescope.builtin'.symbols{ sources = {'julia'} }<CR>") require("telescope").load_extension("ui-select") require("telescope").load_extension("fzf") diff --git a/lua/user/lazy.lua b/lua/user/lazy.lua index d676fc9..dfb8364 100644 --- a/lua/user/lazy.lua +++ b/lua/user/lazy.lua @@ -14,57 +14,59 @@ vim.opt.rtp:prepend(lazypath) -- plugins installation and configuration require("lazy").setup({ - -- lsp setup - { - -- LSP Support - "neovim/nvim-lspconfig", - -- lsp download manager - "williamboman/mason.nvim", - -- automatic lsp setup - "williamboman/mason-lspconfig.nvim", - -- additional formater support - "stevearc/conform.nvim", - -- additional linter support - "mfussenegger/nvim-lint", - -- mason autoinstaller for formatter's and linter's - "WhoIsSethDaniel/mason-tool-installer.nvim", - -- minimal snippet's support - "dcampos/nvim-snippy", - -- basic snippet's - "honza/vim-snippets", - -- cmp for autocompletion - { - "hrsh7th/nvim-cmp", - dependencies = { - -- cmp nvim-lsp plugin - "hrsh7th/cmp-nvim-lsp", - -- path comletion - "hrsh7th/cmp-path", - -- cmp snippy support - "dcampos/cmp-snippy", - }, - }, - -- kind icons - "onsails/lspkind.nvim", - -- Minimal neovim modules for a lot of things - "echasnovski/mini.nvim", - -- Adds git related signs to the gutter, as well as utilities for managing changes - "lewis6991/gitsigns.nvim", - -- better ntrw - "tpope/vim-vinegar", - -- integration with tmux keybinds - "christoomey/vim-tmux-navigator", - -- auto close brackets - "m4xshen/autoclose.nvim", - }, + -- lsp setup + { + -- LSP Support + "neovim/nvim-lspconfig", + -- lsp download manager + "williamboman/mason.nvim", + -- automatic lsp setup + "williamboman/mason-lspconfig.nvim", + -- additional formater support + "stevearc/conform.nvim", + -- additional linter support + "mfussenegger/nvim-lint", + -- mason autoinstaller for formatter's and linter's + "WhoIsSethDaniel/mason-tool-installer.nvim", + -- minimal snippet's support + "dcampos/nvim-snippy", + -- basic snippet's + "honza/vim-snippets", + -- cmp for autocompletion + { + "hrsh7th/nvim-cmp", + dependencies = { + -- cmp nvim-lsp plugin + "hrsh7th/cmp-nvim-lsp", + -- path comletion + "hrsh7th/cmp-path", + -- cmp snippy support + "dcampos/cmp-snippy", + }, + }, + -- kind icons + "onsails/lspkind.nvim", + -- Minimal neovim modules for a lot of things + "echasnovski/mini.nvim", + -- Adds git related signs to the gutter, as well as utilities for managing changes + "lewis6991/gitsigns.nvim", + -- better ntrw + "tpope/vim-vinegar", + -- integration with tmux keybinds + "christoomey/vim-tmux-navigator", + -- auto close brackets + "m4xshen/autoclose.nvim", + }, - { - "dstein64/vim-startuptime", - cmd = "StartupTime", - init = function() - vim.g.startuptime_tries = 10 - end, - }, + "mg979/vim-visual-multi", + + { + "dstein64/vim-startuptime", + cmd = "StartupTime", + init = function() + vim.g.startuptime_tries = 10 + end, + }, { "gbprod/nord.nvim", @@ -126,7 +128,7 @@ require("lazy").setup({ }, }, { - -- lazy options + -- lazy options performance = { rtp = { disabled_plugins = { @@ -141,6 +143,6 @@ require("lazy").setup({ install = { colorscheme = { "nord" }, }, - checker = { enabled = true }, - -- defaults = {lazy = true}, + checker = { enabled = true }, + -- defaults = {lazy = true}, }) |