summaryrefslogtreecommitdiff
path: root/after/plugin/autoclose.lua
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-09-14 19:48:38 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-09-14 20:05:12 +0200
commit7dcd592eae886dc8edde2dc65d6e6323201a2aaf (patch)
tree8c792984bd55d710dd409bcc90d450e2e90a58ce /after/plugin/autoclose.lua
parent6081f67ec9f5032fcd9d4453a2646ca033364615 (diff)
checkpoint
- changed installation of tmux-navigator - removed init.lua file in user/ directory - added autocmd for terminal in insert mode - added keybind for opening terminal - added keybinds for lsp commands - added lua lsp setup - added nvim-cmp - added keybind for editing config - added keybinds for opening splits - added conceallevel = 2 - commented encoding options - plugins: - added go.nvim - added cmp-calc - markdown: - disable pairs for quotes - added pairs in markdown - go: - added go lsp - added autoformat of go files on save
Diffstat (limited to 'after/plugin/autoclose.lua')
-rw-r--r--after/plugin/autoclose.lua34
1 files changed, 24 insertions, 10 deletions
diff --git a/after/plugin/autoclose.lua b/after/plugin/autoclose.lua
index 543d7d9..b742fc6 100644
--- a/after/plugin/autoclose.lua
+++ b/after/plugin/autoclose.lua
@@ -1,20 +1,34 @@
-require("autoclose").setup({
+local filetypes = require("autoclose").setup({
keys = {
["("] = { escape = false, close = true, pair = "()" },
- ["["] = { escape = false, close = true, pair = "[]" },
- ["{"] = { escape = false, close = true, pair = "{}" },
-
- [">"] = { escape = true, close = false, pair = "<>" },
[")"] = { escape = true, close = false, pair = "()" },
+ ["["] = { escape = false, close = true, pair = "[]" },
["]"] = { escape = true, close = false, pair = "[]" },
+ ["{"] = { escape = false, close = true, pair = "{}" },
["}"] = { escape = true, close = false, pair = "{}" },
-
- ['"'] = { escape = true, close = true, pair = '""' },
- ["'"] = { escape = true, close = true, pair = "''" },
- ["`"] = { escape = true, close = true, pair = "``" },
+ [">"] = { escape = true, close = false, pair = "<>" },
+ ['"'] = {
+ escape = true,
+ close = true,
+ pair = '""',
+ disabled_filetypes = { "text", "telekasten", "groff", "diff", "gitcommit", "fugitive", "markdown" },
+ },
+ ["'"] = {
+ escape = true,
+ close = true,
+ pair = "''",
+ disabled_filetypes = { "text", "telekasten", "groff", "diff", "gitcommit", "fugitive", "markdown" },
+ },
+ ["`"] = {
+ escape = true,
+ close = true,
+ pair = "``",
+ disabled_filetypes = { "text", "telekasten", "groff", "diff", "gitcommit", "fugitive" },
+ },
+ ["*"] = { escape = true, close = true, pair = "**", enabled_filetypes = { "markdown" } },
+ ["_"] = { escape = true, close = true, pair = "__", enabled_filetypes = { "markdown" } },
},
options = {
- disabled_filetypes = { "text", "telekasten", "groff", "diff", "gitcommit", "fugitive" },
disable_when_touch = true,
},
})