[2025-04-04] Update to neovim v0.11

https://gpanders.com/blog/whats-new-in-neovim-0-11/
This commit is contained in:
Andrew Conlin 2025-04-04 11:32:58 +01:00
parent 9eff9122fc
commit 7603f0de8e
5 changed files with 12 additions and 13 deletions

View File

@ -12,7 +12,7 @@ require('plugins.treesitter')
--require('plugins.noice')
require('plugins.statuscol')
vim.diagnostic.config({
virtual_text = false,
virtual_lines = { current_line = true, },
underline = true,
signs = {
text = {

View File

@ -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'})

View File

@ -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
}
}
})
}
)

View File

@ -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

View File

@ -10,7 +10,7 @@ export PATH=$PATH:~/go/bin
# export PATH=$PATH:~/.zig
# neovim
export PATH=$PATH:/usr/bin/nvim-linux64/bin
export PATH="$PATH:/opt/nvim-linux-x86_64/bin"
# picotool
export PATH=$PATH:~/picotool/build