diff options
author | Christian Chiarulli <[email protected]> | 2022-09-19 11:44:04 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-19 11:44:04 -0400 |
commit | a331ef711bc6c73e78535e9b4fa44d54c937aa88 (patch) | |
tree | 05df2aa93b7a147393f6daf4483380c88eb6e408 /lua/lvim/core/autocmds.lua | |
parent | 68fdbaa51d658899d4405b2660bfbe360e9dfed4 (diff) |
feat: add lir.nvim again (#3038)
Diffstat (limited to 'lua/lvim/core/autocmds.lua')
-rw-r--r-- | lua/lvim/core/autocmds.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/lvim/core/autocmds.lua b/lua/lvim/core/autocmds.lua index ef7122e5..525d2338 100644 --- a/lua/lvim/core/autocmds.lua +++ b/lua/lvim/core/autocmds.lua @@ -10,6 +10,36 @@ function M.load_defaults() user_config_file = user_config_file:gsub("\\", "/") end + vim.api.nvim_create_autocmd({ "FileType" }, { + pattern = { + "Jaq", + "qf", + "help", + "man", + "lspinfo", + "spectre_panel", + "lir", + "DressingSelect", + "tsplayground", + "Markdown", + }, + callback = function() + vim.cmd [[ + nnoremap <silent> <buffer> q :close<CR> + nnoremap <silent> <buffer> <esc> :close<CR> + set nobuflisted + ]] + end, + }) + + vim.api.nvim_create_autocmd({ "FileType" }, { + pattern = { "lir" }, + callback = function() + vim.opt_local.number = false + vim.opt_local.relativenumber = false + end, + }) + local definitions = { { "TextYankPost", |