36 lines
1.4 KiB
Lua
36 lines
1.4 KiB
Lua
--[[
|
|
Copyright 2023 Oscar Wallberg
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
https://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
]]
|
|
|
|
require('nvim-autopairs').setup({
|
|
disable_filetype = { "TelescopePrompt" },
|
|
disable_in_macro = false, -- disable when recording or executing a macro
|
|
disable_in_visualblock = false, -- disable when insert after visual block mode
|
|
ignored_next_char = [=[[%w%%%'%[%"%.]]=],
|
|
enable_moveright = true,
|
|
enable_afterquote = true, -- add bracket pairs after quote
|
|
enable_check_bracket_line = true, --- check bracket in same line
|
|
enable_bracket_in_quote = true, --
|
|
enable_abbr = false, -- trigger abbreviation
|
|
break_undo = true, -- switch for basic rule break undo sequence
|
|
check_ts = false,
|
|
map_cr = true,
|
|
map_bs = true, -- map the <BS> key
|
|
map_c_h = false, -- Map the <C-h> key to delete a pair
|
|
map_c_w = false, -- map <c-w> to delete a pair if possible
|
|
})
|
|
-- cmp_autopairs.lisp[#cmp_autopairs.lisp+1] = "racket"
|
|
|