This commit is contained in:
2024-09-27 07:29:47 +03:00
parent 0c4bd89b7c
commit 442b845bb4
10 changed files with 17 additions and 10 deletions

View File

@@ -12,12 +12,13 @@ if (not status_mason_lspconfig) then return end
-- Config servers.
local servers = {
-- 'tsserver',
'ts_ls',
'lua_ls',
'bashls',
'clangd',
'cmake',
'html',
'tsserver',
'volar',
'dockerls',
'jsonls',
@@ -77,8 +78,8 @@ mason_lspconfig.setup_handlers {
lspconfig[server_name].setup(config)
end
-- TSSERVER.
if server_name == 'tsserver' then
-- TSSERVER / TS_LS.
if server_name == 'ts_ls' then
config.init_options = {
plugins = {
{

View File

@@ -49,8 +49,8 @@ local function save_profiles(threshold)
end
time([[Luarocks path setup]], true)
local package_path_str = "/home/antoxa/.cache/nvim/packer_hererocks/2.1.1713773202/share/lua/5.1/?.lua;/home/antoxa/.cache/nvim/packer_hererocks/2.1.1713773202/share/lua/5.1/?/init.lua;/home/antoxa/.cache/nvim/packer_hererocks/2.1.1713773202/lib/luarocks/rocks-5.1/?.lua;/home/antoxa/.cache/nvim/packer_hererocks/2.1.1713773202/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/antoxa/.cache/nvim/packer_hererocks/2.1.1713773202/lib/lua/5.1/?.so"
local package_path_str = "/home/antoxa/.cache/nvim/packer_hererocks/2.1.1725453128/share/lua/5.1/?.lua;/home/antoxa/.cache/nvim/packer_hererocks/2.1.1725453128/share/lua/5.1/?/init.lua;/home/antoxa/.cache/nvim/packer_hererocks/2.1.1725453128/lib/luarocks/rocks-5.1/?.lua;/home/antoxa/.cache/nvim/packer_hererocks/2.1.1725453128/lib/luarocks/rocks-5.1/?/init.lua"
local install_cpath_pattern = "/home/antoxa/.cache/nvim/packer_hererocks/2.1.1725453128/lib/lua/5.1/?.so"
if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str
end