removed autoclose

This commit is contained in:
Ivar Fatland
2023-06-04 15:00:00 +02:00
parent 5249d8a0c2
commit 6d47969254
+3 -16
View File
@@ -96,7 +96,6 @@ local function packer_startup(use)
{'nvim-lua/plenary.nvim'}, {'nvim-lua/plenary.nvim'},
} }
} }
use 'roodletoof/autoclose.nvim'
if packer_bootstrap then --Comes after packages if packer_bootstrap then --Comes after packages
require('packer').sync() require('packer').sync()
@@ -129,10 +128,13 @@ local function packer_startup(use)
} }
local cmp = require('cmp') local cmp = require('cmp')
local types = require('cmp.types')
local snippy = require('snippy') local snippy = require('snippy')
cmp.setup{ cmp.setup{
mapping = { mapping = {
['<Down>'] = { i = cmp.mapping.select_next_item{ behavior = types.cmp.SelectBehavior.Select } },
['<Up>'] = { i = cmp.mapping.select_prev_item{ behavior = types.cmp.SelectBehavior.Select } },
[keymap.autocomplete_abort] = cmp.mapping( [keymap.autocomplete_abort] = cmp.mapping(
function (_) function (_)
cmp.mapping.abort() cmp.mapping.abort()
@@ -218,21 +220,6 @@ local function packer_startup(use)
vim.keymap.set('n', keymap.live_grep, builtin.live_grep, {}) vim.keymap.set('n', keymap.live_grep, builtin.live_grep, {})
vim.keymap.set('n', keymap.search_help_pages, builtin.help_tags, {}) vim.keymap.set('n', keymap.search_help_pages, builtin.help_tags, {})
require('autoclose').setup{
filetype_specific_keys = {
tex = {
['$'] = { escape = true, close = true, pair = '$$' },
["'"] = false,
}
},
options = {
pair_spaces = true,
auto_indent = true,
disabled_filetypes = {"text"},
disable_when_touch = true
}
}
vim.g.python_indent = { -- Fixes retarded default python indentation. vim.g.python_indent = { -- Fixes retarded default python indentation.
open_paren = 'shiftwidth()', open_paren = 'shiftwidth()',
nested_paren = 'shiftwidth()', nested_paren = 'shiftwidth()',