From 42ecaaba895acac3e872f3e03306695006d3cbe8 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 20 Apr 2023 13:05:53 +0200 Subject: [PATCH] Neovim changes --- nvim/.config/nvim/after/plugin/lsp.lua | 6 +++--- nvim/.config/nvim/lua/evim/packer.lua | 14 +++++++++----- nvim/.config/nvim/plugin/packer_compiled.lua | 10 ++++++++++ 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/nvim/.config/nvim/after/plugin/lsp.lua b/nvim/.config/nvim/after/plugin/lsp.lua index 8d8592f..00695fa 100644 --- a/nvim/.config/nvim/after/plugin/lsp.lua +++ b/nvim/.config/nvim/after/plugin/lsp.lua @@ -13,9 +13,9 @@ lsp.ensure_installed({ local cmp = require("cmp") local cmp_select = { behavior = cmp.SelectBehavior.Select } local cmp_mappings = lsp.defaults.cmp_mappings({ - [""] = cmp.mapping.select_prev_item(cmp_select), - [""] = cmp.mapping.select_next_item(cmp_select), - [""] = cmp.mapping.confirm({ select = true }), + [""] = cmp.mapping.select_prev_item(cmp_select), + [""] = cmp.mapping.select_next_item(cmp_select), + -- [""] = cmp.mapping.confirm({ select = true }), [""] = cmp.mapping.complete(), }) diff --git a/nvim/.config/nvim/lua/evim/packer.lua b/nvim/.config/nvim/lua/evim/packer.lua index 9e7c7af..904eae2 100644 --- a/nvim/.config/nvim/lua/evim/packer.lua +++ b/nvim/.config/nvim/lua/evim/packer.lua @@ -25,7 +25,7 @@ return require("packer").startup(function(use) branch = "v2.x", requires = { -- LSP Support - { "neovim/nvim-lspconfig" }, -- Required + { "neovim/nvim-lspconfig" }, -- Required { -- Optional "williamboman/mason.nvim", @@ -33,12 +33,12 @@ return require("packer").startup(function(use) pcall(vim.cmd, "MasonUpdate") end, }, - { "williamboman/mason-lspconfig.nvim" }, -- Optional + { "williamboman/mason-lspconfig.nvim" }, -- Optional -- Autocompletion - { "hrsh7th/nvim-cmp" }, -- Required - { "hrsh7th/cmp-nvim-lsp" }, -- Required - { "L3MON4D3/LuaSnip" }, -- Required + { "hrsh7th/nvim-cmp" }, -- Required + { "hrsh7th/cmp-nvim-lsp" }, -- Required + { "L3MON4D3/LuaSnip" }, -- Required } } @@ -57,4 +57,8 @@ return require("packer").startup(function(use) require("todo-comments").setup({}) end } + use { + "windwp/nvim-autopairs", + config = function() require("nvim-autopairs").setup {} end + } end) diff --git a/nvim/.config/nvim/plugin/packer_compiled.lua b/nvim/.config/nvim/plugin/packer_compiled.lua index c5a47f2..0fe8434 100644 --- a/nvim/.config/nvim/plugin/packer_compiled.lua +++ b/nvim/.config/nvim/plugin/packer_compiled.lua @@ -120,6 +120,12 @@ _G.packer_plugins = { path = "/home/elal/.local/share/nvim/site/pack/packer/start/melange-nvim", url = "https://github.com/savq/melange-nvim" }, + ["nvim-autopairs"] = { + config = { "\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" }, + loaded = true, + path = "/home/elal/.local/share/nvim/site/pack/packer/start/nvim-autopairs", + url = "https://github.com/windwp/nvim-autopairs" + }, ["nvim-cmp"] = { loaded = true, path = "/home/elal/.local/share/nvim/site/pack/packer/start/nvim-cmp", @@ -174,6 +180,10 @@ time([[Defining packer_plugins]], false) 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") time([[Config for todo-comments.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")