[2025-04-04] Update to neovim v0.11
https://gpanders.com/blog/whats-new-in-neovim-0-11/
This commit is contained in:
parent
9eff9122fc
commit
7603f0de8e
5 changed files with 12 additions and 13 deletions
|
@ -1,8 +1,8 @@
|
|||
local coq = require("coq")
|
||||
local util = require("lspconfig.util")
|
||||
require('lspconfig').lua_ls.setup(
|
||||
coq.lsp_ensure_capabilities({
|
||||
vim.lsp.config.lua_ls =
|
||||
{
|
||||
cmd = { os.getenv("HOME") .. "/lua-language-server/bin/lua-language-server" },
|
||||
root_dir = util.root_pattern('init.lua'),
|
||||
})
|
||||
)
|
||||
root_markers = { 'init.lua' },
|
||||
filetypes = { 'lua' },
|
||||
}
|
||||
|
||||
vim.lsp.enable({'lua_ls'})
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
local coq = require("coq")
|
||||
local util = require("lspconfig.util")
|
||||
require('lspconfig').matlab_ls.setup(
|
||||
coq.lsp_ensure_capabilities({
|
||||
{
|
||||
cmd = { "node", os.getenv("HOME") .. "/MATLAB-language-server/out/index.js", "--stdio" },
|
||||
root_dir = util.root_pattern('mw_anchor'),
|
||||
single_file_support = true,
|
||||
|
@ -13,5 +12,5 @@ require('lspconfig').matlab_ls.setup(
|
|||
telemetry = false
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
)
|
||||
|
|
|
@ -24,7 +24,7 @@ GetTime = function()
|
|||
end
|
||||
|
||||
GetLSP = function()
|
||||
local clients = vim.lsp.buf_get_clients()
|
||||
local clients = vim.lsp.get_clients()
|
||||
if next(clients) ~= nil then
|
||||
local name = string.format('%s',clients[1].name)
|
||||
local root = clients[1].root_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue