mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +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
|
@ -10,8 +10,8 @@
|
|||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"code_runner.nvim": { "branch": "main", "commit": "6c5bfe44a6c7523350cd706e6b3b8101166eed99" },
|
||||
"codeium.vim": { "branch": "main", "commit": "289eb724e5d6fab2263e94a1ad6e54afebefafb2" },
|
||||
"dracula.nvim": { "branch": "main", "commit": "8d8bddb8814c3e7e62d80dda65a9876f97eb699c" },
|
||||
"codeium.nvim": { "branch": "main", "commit": "d3b88eb3aa1de6da33d325c196b8a41da2bcc825" },
|
||||
"darcula-dark.nvim": { "branch": "main", "commit": "cce636860dc5151b6980a35dd378f54a238e0f0e" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "572314728cb1ce012e825fd66331f52c94acac12" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "e11b09bf10706bb74e16e4c3d11b2274d62e687f" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "76927d14d3fbd4ba06ccb5246e79d93b5442c188" },
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
-- solarized-osaka
|
||||
-- darcula-dark
|
||||
-- juliana
|
||||
vim.g.pcode_colorscheme = "dracula"
|
||||
vim.g.pcode_colorscheme = "darcula-dark"
|
||||
|
||||
-- 0 =off 1= on
|
||||
vim.g.pcode_transparent_mode = 0
|
||||
|
|
|
@ -10,12 +10,6 @@ if vim.g.pcode_indentscope and true or false then
|
|||
options = { try_as_border = true },
|
||||
},
|
||||
config = function(_, opts)
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "help", "alpha", "dashboard", "NvimTree", "Trouble", "lazy", "mason" },
|
||||
callback = function()
|
||||
vim.b.miniindentscope_disable = true
|
||||
end,
|
||||
})
|
||||
require("mini.indentscope").setup(opts)
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -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