mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-13 19:04:36 +02:00
Merge eb111c7ab4
into 25abbf546d
This commit is contained in:
commit
6e816edd6e
1 changed files with 66 additions and 0 deletions
66
lua/lazyvim/plugins/extras/lang/julia.lua
Normal file
66
lua/lazyvim/plugins/extras/lang/julia.lua
Normal file
|
@ -0,0 +1,66 @@
|
||||||
|
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" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- cmp integration
|
||||||
|
{
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
optional = true,
|
||||||
|
dependencies = { "kdheepak/cmp-latex-symbols" },
|
||||||
|
opts = function(_, opts)
|
||||||
|
table.insert(opts.sources, {
|
||||||
|
name = "latex_symbols",
|
||||||
|
option = {
|
||||||
|
strategy = 0, -- mixed
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- blink.cmp integration
|
||||||
|
{
|
||||||
|
"saghen/blink.cmp",
|
||||||
|
optional = true,
|
||||||
|
dependencies = { "kdheepak/cmp-latex-symbols", "saghen/blink.compat" },
|
||||||
|
opts = {
|
||||||
|
sources = {
|
||||||
|
compat = { "latex_symbols" },
|
||||||
|
providers = {
|
||||||
|
latex_symbols = {
|
||||||
|
kind = "LatexSymbols",
|
||||||
|
async = true,
|
||||||
|
opts = {
|
||||||
|
strategy = 0, -- mixed
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue