diff --git a/nvim/.config/nvim/lua/evim/packer.lua b/nvim/.config/nvim/lua/evim/packer.lua index 87450e3..f9a866b 100644 --- a/nvim/.config/nvim/lua/evim/packer.lua +++ b/nvim/.config/nvim/lua/evim/packer.lua @@ -77,6 +77,12 @@ return require("packer").startup(function(use) "windwp/nvim-autopairs", config = function() require("nvim-autopairs").setup {} end } + use { + "lewis6991/gitsigns.nvim", + config = function() + require('gitsigns').setup() + end + } if packer_bootstrap then require("packer").sync() diff --git a/nvim/.config/nvim/lua/evim/remap.lua b/nvim/.config/nvim/lua/evim/remap.lua index 9576344..2aa773a 100644 --- a/nvim/.config/nvim/lua/evim/remap.lua +++ b/nvim/.config/nvim/lua/evim/remap.lua @@ -19,3 +19,7 @@ vim.keymap.set("n", "y", "\"+y") vim.keymap.set("v", "y", "\"+y") vim.keymap.set("n", "Y", "\"+Y") +-- Prettier +vim.keymap.set("n", "g", function() + vim.cmd "Prettier" -- NOTE: this is super hacky but fuck you +end, { buffer = bufnr, desc = "[lsp] Format" }) diff --git a/nvim/.config/nvim/plugin/after/lsp.lua b/nvim/.config/nvim/plugin/after/lsp.lua index 8220b61..4c83f95 100644 --- a/nvim/.config/nvim/plugin/after/lsp.lua +++ b/nvim/.config/nvim/plugin/after/lsp.lua @@ -42,8 +42,8 @@ lsp.on_attach(function(client, bufnr) vim.keymap.set("n", "vrn", function() vim.lsp.buf.rename() end, opts) vim.keymap.set("i", "", function() vim.lsp.buf.signature_help() end, opts) vim.keymap.set("n", "", function() - vim.cmd "Prettier" -- NOTE: this is super hacky but fuck you vim.lsp.buf.format { async = true } + -- vim.cmd "Prettier" -- NOTE: this is super hacky but fuck you end, opts) end) diff --git a/nvim/.config/nvim/plugin/packer_compiled.lua b/nvim/.config/nvim/plugin/packer_compiled.lua index c14bb13..c20593d 100644 --- a/nvim/.config/nvim/plugin/packer_compiled.lua +++ b/nvim/.config/nvim/plugin/packer_compiled.lua @@ -95,6 +95,12 @@ _G.packer_plugins = { path = "/home/elal/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", url = "https://github.com/hrsh7th/cmp-nvim-lsp" }, + ["gitsigns.nvim"] = { + config = { "\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rgitsigns\frequire\0" }, + loaded = true, + path = "/home/elal/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", + url = "https://github.com/lewis6991/gitsigns.nvim" + }, ["lsp-zero.nvim"] = { loaded = true, path = "/home/elal/.local/share/nvim/site/pack/packer/start/lsp-zero.nvim", @@ -191,14 +197,18 @@ _G.packer_plugins = { } time([[Defining packer_plugins]], false) --- Config for: Comment.nvim -time([[Config for Comment.nvim]], true) -try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim") -time([[Config for Comment.nvim]], false) -- Config for: nvim-autopairs time([[Config for nvim-autopairs]], true) try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs") time([[Config for nvim-autopairs]], false) +-- Config for: Comment.nvim +time([[Config for Comment.nvim]], true) +try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim") +time([[Config for Comment.nvim]], false) +-- Config for: gitsigns.nvim +time([[Config for gitsigns.nvim]], true) +try_loadstring("\27LJ\2\n6\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\rgitsigns\frequire\0", "config", "gitsigns.nvim") +time([[Config for gitsigns.nvim]], false) -- Config for: todo-comments.nvim time([[Config for todo-comments.nvim]], true) try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18todo-comments\frequire\0", "config", "todo-comments.nvim")