-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
38 lines (37 loc) · 1.08 KB
/
init.lua
File metadata and controls
38 lines (37 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
-- Set up `julials` manually, since the Julia language server is not a binary and
-- cannot be managed very well by mason.nvim.
-- See https://github.com/julia-vscode/LanguageServer.jl/wiki/Vim-and-Neovim#vimlsp---new-api-in-neovim-011
vim.lsp.config("jetls", {
cmd = {
"jetls",
"serve",
},
filetypes = { "julia" },
root_markers = { "Project.toml" },
})
vim.lsp.enable("jetls")
vim.opt.spell = true -- Enable spellchecking
vim.opt.spelllang = { "en", "cjk" } -- Set languages
-- Source - https://stackoverflow.com/a/79656109
-- Posted by Jo Totland
-- Retrieved 2026-03-18, License - CC BY-SA 4.0
vim.lsp.config("lua_ls", {
settings = {
Lua = {
diagnostics = {
globals = { "vim" },
},
runtime = {
version = "LuaJIT",
},
workspace = {
-- Make the server aware of Neovim runtime files
library = vim.api.nvim_get_runtime_file("", true),
},
},
},
root_markers = { { ".luarc.json", ".luarc.jsonc" }, ".git" },
})
vim.lsp.enable("lua_ls")