mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-02 21:44:29 +02:00
enc: optimize lsp config & optimize foramat on save
This commit is contained in:
parent
618b816d52
commit
a3143f9ae0
12 changed files with 437 additions and 322 deletions
|
@ -28,6 +28,15 @@ _G.all_trim = function(s)
|
|||
return s:match("^%s*(.-)%s*$")
|
||||
end
|
||||
|
||||
_G.idxOf = function(array, value)
|
||||
for i, v in ipairs(array) do
|
||||
if v == value then
|
||||
return i
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
-- run if rust config true
|
||||
if pcode.active_rust_config then
|
||||
table.insert(pcode.mason_ensure_installed, "rust_analyzer")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue