首页 \ 问答 \ 禁用(neo)vim中的背景透明度(Disable background transparency in (neo)vim)

禁用(neo)vim中的背景透明度(Disable background transparency in (neo)vim)

我在Konsole运行Neovim 0.2.1,后面是i3和Compton。 我在Konsole中使用了一点透明度来获得更加精巧的体验,但鉴于我使用vim作为我的主要编辑器,我宁愿在那里没有透明度,因为它有点分散注意力。 我的配色方案是vim-monokai

真正让我感到头疼的是我有两台电脑,两台电脑都运行相同的设置(英特尔集成显卡,i3,康普顿,Konsole,zsh,相同的neovim版本和插件)。 一个在终端没有透明度,而另一个没有透明度。


I'm running Neovim 0.2.1 in Konsole with i3 and Compton in the back. I'm using a little bit of transparency in Konsole for a more dapper experience, but given that I use vim as my primary editor I'd prefer to not have transparency there as it's a little bit distracting. My colour scheme is vim-monokai.

What's really got me scratching my head is that I have two computers, both running virtually the same setup (Intel integrated graphics, i3, Compton, Konsole, zsh, same neovim version and plugins). One does not have transparency in its terminal, while the other does.


原文:https://stackoverflow.com/questions/46570644
更新时间:2022-06-04 18:06

最满意答案

这是spring-boot中的一个错误。 作为解决方法,我删除了spring.quartz.job-store-type属性,然后在customizer中配置了DataSource和PlatformTransactionManager。 请参阅以下更新代码:

@Configuration
public class SchedulerConfig 
{
    private DataSource dataSource;

    private PlatformTransactionManager transactionManager;

    @Autowired
    public SchedulerConfig(@Qualifier("schedulerDataSource") DataSource dataSource, @Qualifier("schedulerTransactionManager") PlatformTransactionManager transactionManager) 
    {
        this.dataSource = dataSource;
        this.transactionManager = transactionManager;
    }

    @Bean
    public SchedulerFactoryBeanCustomizer schedulerFactoryBeanCustomizer() 
    {
        return bean -> 
        {
            bean.setDataSource(dataSource);
            bean.setTransactionManager(transactionManager);
        };
    }
}

This is a bug in spring-boot. As a workaround, I removed spring.quartz.job-store-type property and then configured DataSource and PlatformTransactionManager in customizer. Refer below updated code:

@Configuration
public class SchedulerConfig 
{
    private DataSource dataSource;

    private PlatformTransactionManager transactionManager;

    @Autowired
    public SchedulerConfig(@Qualifier("schedulerDataSource") DataSource dataSource, @Qualifier("schedulerTransactionManager") PlatformTransactionManager transactionManager) 
    {
        this.dataSource = dataSource;
        this.transactionManager = transactionManager;
    }

    @Bean
    public SchedulerFactoryBeanCustomizer schedulerFactoryBeanCustomizer() 
    {
        return bean -> 
        {
            bean.setDataSource(dataSource);
            bean.setTransactionManager(transactionManager);
        };
    }
}

相关问答

更多
  • SpringBeanAutowiringSupport使用Web应用程序上下文,这在您的案例中不可用。 如果你需要一个弹簧管理的石英豆,你应该使用弹簧提供的石英支撑。 这将使您可以完全访问所有托管的bean。 有关更多信息,请参阅http://docs.spring.io/spring/docs/current/spring-framework-reference/html/scheduling.html上春季文档中的石英部分。 另请参见以下使用弹簧管理bean的石英使用示例。 示例基于您的代码。 所以你可 ...
  • 这是spring-boot中的一个错误。 作为解决方法,我删除了spring.quartz.job-store-type属性,然后在customizer中配置了DataSource和PlatformTransactionManager。 请参阅以下更新代码: @Configuration public class SchedulerConfig { private DataSource dataSource; private PlatformTransactionManager tran ...
  • 要修复代码中的complilation错误: use scheduler.getTrigger(new TriggerKey(name,JOB_GROUPNAME)); 使用scheduler.rescheduleJob(new TriggerKey(name,JOB_GROUPNAME),trigger); 将CronTrigger转换为具有setCronExpression()方法的CronTriggerImpl 在github上查看我的Spring Boot + Quartz示例项目: https : ...
  • Spring Session本身并不创建DataSource ,而是使用应用程序上下文中的一个,如果它是以下两者之一: 唯一的DataSource bean DataSource标记为@Primary 另外,如果您希望为Spring Session使用特定的DataSource (例如,如果您的应用程序中有多个DataSource ),则可以通过以下方式来实现: 通过@SpringSessionDataSource标注为Spring会话指定的DataSource (Spring Session 2.0起) ...
  • 问题在于,默认情况下不使用事务管理器,因此不使用锁定。 要解决此问题,需要调用schedulerFactoryBean的setTransactionManager方法。 The problem is the fact that by default no transaction manager is used, so no locking is used. To solve the issue, it is required to call the schedulerFactoryBean's setTra ...
  • 基本上你需要告诉春天哪些实体属于哪个数据库。 以下代码假定Spring Boot 2.0。 您还需要配置哪个存储库属于哪个配置。 对于存储库,这是通过@EnableJpaRepositories完成的,而实体包是在LocalContainerEntityManagerFactoryBean中指定的。 主数据库配置: @Configuration @EnableTransactionManagement @EnableJpaRepositories( basePackages = {"prim ...
  • 从Spring Boot 2.0.0.M6开始,您应该使用新的spring.jpa.mapping-resources属性来定义自定义映射,而不是覆盖Spring Boot的内部。 YML中的示例: spring: jpa: mapping-resources: - db/mappings/dummy.xml 有关完整示例,请检查此存储库的application.yml配置文件 。 Since Spring Boot 2.0.0.M6, rather than overriding Spring Boot' ...
  • 这对我有用: @Controller public class JobController { @Autowired private Scheduler scheduler; @Autowired private ApplicationContext context; @ResponseBody @RequestMapping("/job/create/daily") public String dailyJob() throws Schedul ...
  • 好的,对于任何寻找文档的人来说,我能找到的最好的是W0lf在评论中链接的Java文档。 由于Quartz.net是Java版本的一个端口,因此文档类似于开始理解一些内部工作。 我正在开发一些简单的工作来测试和获得经验。 希望我能在某些时候为社区做出贡献。 找到另一个很好的信息来源。 时间轴从使用1.0开始,然后迁移到2.0。 但那里有很多信息,我不能感谢作者的工作。 这是一个链接: http : //jvilalta.blogspot.com 另一方面,我对Marko Lahma有点苛刻。 他正在帮助提供我 ...
  • Spring Boot为你管理它。 删除石英依赖项,只需为计划执行创建一个Service : @Service public class JobScheduler{ @Autowired JobController controller; //Executes each 5000 ms @Scheduled(fixedRate=5000) public void performJob() { controller.doPrintData(); ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)