mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
add: create autocmd for ignore indentscupe
This commit is contained in:
parent
c8798367cc
commit
73f85d9584
4 changed files with 19 additions and 18 deletions
|
@ -1,5 +1,5 @@
|
|||
-- autocmd BufWinEnter * :set formatoptions-=cro
|
||||
vim.cmd([[
|
||||
vim.cmd [[
|
||||
augroup _general_settings
|
||||
autocmd!
|
||||
autocmd FileType qf,help,man,lspinfo nnoremap <silent> <buffer> q :close<CR>
|
||||
|
@ -56,21 +56,28 @@ vim.cmd([[
|
|||
autocmd!
|
||||
autocmd BufWritePre * :call s:MkNonExDir(expand('<afile>'), +expand('<abuf>'))
|
||||
augroup END
|
||||
]])
|
||||
]]
|
||||
|
||||
-- for fix error last close buffer
|
||||
vim.api.nvim_create_autocmd({ "QuitPre" }, {
|
||||
callback = function()
|
||||
vim.cmd("NvimTreeClose")
|
||||
end,
|
||||
callback = function()
|
||||
vim.cmd "NvimTreeClose"
|
||||
end,
|
||||
})
|
||||
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
autocmd("VimEnter", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.opt.statusline = "%#normal# "
|
||||
end,
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.opt.statusline = "%#normal# "
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
|
||||
callback = function()
|
||||
vim.b.miniindentscope_disable = true
|
||||
end,
|
||||
})
|
||||
|
||||
-- Autoformat
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue