From b81618e0c8a157f5aa48b3307ea4ed03979c0349 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Mon, 13 Mar 2023 21:36:59 +0900 Subject: [PATCH] add: nvim: add autopair --- dotfiles/neovim/init.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index a924cab..fcf48c1 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -22,6 +22,15 @@ require('lazy').setup({ require('Comment').setup() end, }, + { -- auto pair + 'windwp/nvim-autopairs', + config = function() + require('nvim-autopairs').setup { + check_ts = true, -- use treesitter + } + end, + event = "InsertEnter", + }, { -- lualine(statusline) 'nvim-lualine/lualine.nvim', dependencies = { 'kyazdani42/nvim-web-devicons', lazy = true } @@ -309,13 +318,11 @@ lspconfig.lua_ls.setup { }, }, } - -- Julia lspconfig.julials.setup { on_attach = on_attach, capabilities = capabilities, } - -- SATySFi lspconfig.satysfi_ls.setup { on_attach = on_attach,