Fixed bindings etc.

laptop
E. Almqvist 1 year ago
parent fd5ca88b83
commit b0bd3c871a
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 6
      nvim/.config/nvim/lua/evim/packer.lua
  2. 4
      nvim/.config/nvim/lua/evim/remap.lua
  3. 2
      nvim/.config/nvim/plugin/after/lsp.lua
  4. 18
      nvim/.config/nvim/plugin/packer_compiled.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()

@ -19,3 +19,7 @@ vim.keymap.set("n", "<leader>y", "\"+y")
vim.keymap.set("v", "<leader>y", "\"+y")
vim.keymap.set("n", "<leader>Y", "\"+Y")
-- Prettier
vim.keymap.set("n", "<leader>g", function()
vim.cmd "Prettier" -- NOTE: this is super hacky but fuck you
end, { buffer = bufnr, desc = "[lsp] Format" })

@ -42,8 +42,8 @@ lsp.on_attach(function(client, bufnr)
vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts)
vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
vim.keymap.set("n", "<A-g>", 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)

@ -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")

Loading…
Cancel
Save