diff --git a/nvim/after/ftplugin/rust.lua b/nvim/after/ftplugin/rust.lua deleted file mode 100644 index 51c1b36f..00000000 --- a/nvim/after/ftplugin/rust.lua +++ /dev/null @@ -1,7 +0,0 @@ -local mp = require('mini.pairs') - -mp.map_buf(0, 'i', '<', { action = 'open', pair = '<>', neigh_pattern = '[%a:].', register = { cr = false } }) -mp.map_buf(0, 'i', '>', { action = 'close', pair = '<>', register = { cr = false } }) - --- Don't close single quote if we're in a lifetime position. -mp.map_buf(0, 'i', "'", { action = 'closeopen', pair = "''", neigh_pattern = '[^%a\\<&].', register = { cr = false } }) diff --git a/nvim/lua/my/configure/init.lua b/nvim/lua/my/configure/init.lua index 0d0d5c07..d9dcf818 100644 --- a/nvim/lua/my/configure/init.lua +++ b/nvim/lua/my/configure/init.lua @@ -16,21 +16,6 @@ return { }, { 'mrjones2014/iconpicker.nvim' }, { 'mrjones2014/lua-gf.nvim', dev = true, ft = 'lua' }, - -- { - -- 'echasnovski/mini.pairs', - -- event = 'InsertEnter', - -- opts = { - -- mappings = { - -- -- https://old.reddit.com/r/neovim/comments/163rzex/how_to_avoid_autocompleting_right_parentheses/jy4zwp8/ - -- -- disable if a matching character is in an adjacent position (eg. fixes - -- -- markdown triple ticks) neigh_pattern: a pattern for *two* neighboring - -- -- characters (before and after). Use dot `.` to allow any character. - -- -- Here, we disable the functionality instead of inserting a matching quote - -- -- if there is an adjacent non-space character - -- ['`'] = { action = 'closeopen', pair = '``', neigh_pattern = '[^%S][^%S]', register = { cr = false } }, - -- }, - -- }, - -- }, { 'echasnovski/mini.splitjoin', keys = {