Skip to content

Commit b2edefe

Browse files
committed
spring-boot config
1 parent c3a659b commit b2edefe

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

ftplugin/jproperties.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
require("spring_boot.launch").start(require("kide.lsp.spring-boot").config)
1+
if vim.env["SPRING_BOOT_NVIM_ENABLE"] == "Y" then
2+
if require("spring_boot.util").is_application_properties_buf(0) then
3+
require("spring_boot.launch").start(require("kide.lsp.spring-boot").config)
4+
end
5+
end

ftplugin/yaml.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
require("spring_boot.launch").start(require("kide.lsp.spring-boot").config)
1+
if vim.env["SPRING_BOOT_NVIM_ENABLE"] == "Y" then
2+
if require("spring_boot.util").is_application_yml_buf(0) then
3+
require("spring_boot.launch").start(require("kide.lsp.spring-boot").config)
4+
end
5+
end

0 commit comments

Comments
 (0)