From c3b64605541884a447ba60885dd44c6b3651ec32 Mon Sep 17 00:00:00 2001 From: Jose Storopoli Date: Sat, 14 Sep 2024 05:00:26 -0300 Subject: [PATCH] feat(extras): lang julia Adds julia as one the extras/lang with sensible and minimalist defaults. --- lua/lazyvim/plugins/extras/lang/julia.lua | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/julia.lua diff --git a/lua/lazyvim/plugins/extras/lang/julia.lua b/lua/lazyvim/plugins/extras/lang/julia.lua new file mode 100644 index 00000000..db739fc2 --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/julia.lua @@ -0,0 +1,34 @@ +return { + recommended = function() + return LazyVim.extras.wants({ + ft = { "julia" }, + root = { "Project.toml" }, + }) + end, + { + "nvim-treesitter/nvim-treesitter", + opts = { ensure_installed = { "julia" } }, + }, + { + "neovim/nvim-lspconfig", + opts = { + servers = { + julials = { + settings = { + -- use the same default settings as the Julia VS Code extension + julia = { + completionmode = "qualify", + lint = { missingrefs = "none" }, + inlayHints = { + static = { + enabled = false, + variableTypes = { enabled = true }, + }, + }, + }, + }, + }, + }, + }, + }, +}