From 1702915a0b471da49ba812e1c13ae87306c6068a Mon Sep 17 00:00:00 2001 From: filip <“filip.rabiega@gmail.com”> Date: Thu, 25 Jun 2026 21:32:25 +0200 Subject: add autopairs and lspconfig --- autopairs.lua | 39 ++++----------------------------------- 1 file changed, 4 insertions(+), 35 deletions(-) (limited to 'autopairs.lua') diff --git a/autopairs.lua b/autopairs.lua index 97407dc..bc0f7fe 100644 --- a/autopairs.lua +++ b/autopairs.lua @@ -1,42 +1,11 @@ return { - -- nvim-autopairs: auto close brackets, quotes { "windwp/nvim-autopairs", - event = "InsertEnter", -- lazy-load when entering insert mode + event = "InsertEnter", -- lazy-load config = function() - require("nvim-autopairs").setup({}) + require("nvim-autopairs").setup({ + disable_filetype = { "tex" }, -- completely disable in LaTeX files + }) end, }, - - -- nvim-cmp: autocompletion engine - -- { - -- "hrsh7th/nvim-cmp", - -- event = "InsertEnter", - -- dependencies = { - -- "hrsh7th/cmp-nvim-lsp", - -- "hrsh7th/cmp-buffer", - -- "hrsh7th/cmp-path", - -- "saadparwaiz1/cmp_luasnip", - -- "L3MON4D3/LuaSnip", - -- }, - -- config = function() - -- local cmp = require("cmp") - -- local luasnip = require("luasnip") - -- cmp.setup({ - -- snippet = { expand = function(args) luasnip.lsp_expand(args.body) end }, - -- mapping = cmp.mapping.preset.insert({ - -- [""] = cmp.mapping.select_next_item(), - -- [""] = cmp.mapping.select_prev_item(), - -- [""] = cmp.mapping.confirm({ select = true }), - -- [""] = cmp.mapping.complete(), - -- }), - -- sources = cmp.config.sources({ - -- { name = "nvim_lsp" }, - -- { name = "buffer" }, - -- { name = "path" }, - -- { name = "luasnip" }, - -- }), - -- }) - -- end, - -- }, } -- cgit v1.2.3