-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add LSP for freemarker + improvemnts
- Loading branch information
Kevin Manca
committed
Jan 5, 2025
1 parent
a4bede2
commit e8c3ac2
Showing
6 changed files
with
58 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
------------------------------------- | ||
----- File : freemarker.lua | ||
----- Description : filetype freemarker extra config | ||
----- Author : Kevin | ||
----- Last Modified: 05/01/2025 - 13:26 | ||
---------------------------------------- | ||
|
||
---Starting LSP for freemarker | ||
-- @url https://github.com/angelozerr/freemarker-languageserver | ||
|
||
local cmd = { | ||
[[C:\Program Files\Amazon Corretto\jdk17.0.13_11\bin\java.exe]], | ||
"-Dlog.protocol=true", | ||
"-Dlog.level=ALL", | ||
"-Xms1g", | ||
"--add-modules=ALL-SYSTEM", | ||
"--add-opens", "java.base/java.lang=ALL-UNNAMED", | ||
"--add-opens", "java.base/java.util=ALL-UNNAMED", | ||
"-jar", | ||
[[C:\Users\kmanca\AppData\Local\freemarker-languageserver\target\freemarker-languageserver-all.jar]], | ||
} | ||
|
||
vim.lsp.start { | ||
name = "freemarker_ls", | ||
cmd = cmd, | ||
filetypes = { "freemarker", "ftl" }, | ||
root_dir = vim.fs.dirname(vim.api.nvim_buf_get_name(0)), | ||
on_attach = require "plugins.lsp".on_attach | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters