mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 09:48:51 +02:00
add mograte from dev
This commit is contained in:
parent
f5f74f80e0
commit
d2749f48eb
12 changed files with 440 additions and 120 deletions
|
@ -37,6 +37,20 @@ _G.idxOf = function(array, value)
|
|||
return nil
|
||||
end
|
||||
|
||||
_G.unique_list = function(list)
|
||||
local seen = {}
|
||||
local result = {}
|
||||
|
||||
for _, val in ipairs(list) do
|
||||
if not seen[val] then
|
||||
table.insert(result, val)
|
||||
seen[val] = true
|
||||
end
|
||||
end
|
||||
|
||||
return result
|
||||
end
|
||||
|
||||
-- run if rust config true
|
||||
if pcode.active_rust_config then
|
||||
table.insert(pcode.mason_ensure_installed, "rust_analyzer")
|
||||
|
@ -62,7 +76,7 @@ if pcode.active_php_config then
|
|||
end
|
||||
table.insert(pcode.mason_ensure_installed, "intelephense")
|
||||
table.insert(pcode.mason_ensure_installed, "stimulus_ls")
|
||||
table.insert(pcode.null_ls_ensure_installed, "phpcbf")
|
||||
table.insert(pcode.null_ls_ensure_installed, "php-cs-fixer")
|
||||
table.insert(pcode.null_ls_ensure_installed, "blade_formatter")
|
||||
table.insert(pcode.null_ls_ensure_installed, "phpcs")
|
||||
end
|
||||
|
@ -78,29 +92,29 @@ if pcode.active_golang_config then
|
|||
end
|
||||
-- run if python config true
|
||||
if pcode.active_python_config then
|
||||
table.insert(pcode.treesitter_ensure_installed, "python")
|
||||
table.insert(pcode.mason_ensure_installed, "pyright")
|
||||
table.insert(pcode.null_ls_ensure_installed, "flake8")
|
||||
table.insert(pcode.null_ls_ensure_installed, "black")
|
||||
-- table.insert(pcode.treesitter_ensure_installed, "python")
|
||||
-- table.insert(pcode.mason_ensure_installed, "pyright")
|
||||
-- table.insert(pcode.null_ls_ensure_installed, "flake8")
|
||||
-- table.insert(pcode.null_ls_ensure_installed, "black")
|
||||
if vim.fn.has("win32") ~= 1 then
|
||||
pcode.nvim_dap = true
|
||||
end
|
||||
end
|
||||
-- run if cpp config true
|
||||
if pcode.active_cpp_config then
|
||||
table.insert(pcode.treesitter_ensure_installed, "cpp")
|
||||
table.insert(pcode.treesitter_ensure_installed, "c")
|
||||
table.insert(pcode.mason_ensure_installed, "clangd")
|
||||
table.insert(pcode.null_ls_ensure_installed, "clang_format")
|
||||
table.insert(pcode.dap_ensure_installed, "codelldb")
|
||||
pcode.nvim_dap = true
|
||||
end
|
||||
-- if pcode.active_cpp_config then
|
||||
-- table.insert(pcode.treesitter_ensure_installed, "cpp")
|
||||
-- table.insert(pcode.treesitter_ensure_installed, "c")
|
||||
-- table.insert(pcode.mason_ensure_installed, "clangd")
|
||||
-- table.insert(pcode.null_ls_ensure_installed, "clang_format")
|
||||
-- table.insert(pcode.dap_ensure_installed, "codelldb")
|
||||
-- pcode.nvim_dap = true
|
||||
-- end
|
||||
-- run if java config true
|
||||
if pcode.active_java_config.active then
|
||||
table.insert(pcode.treesitter_ensure_installed, "java")
|
||||
table.insert(pcode.mason_ensure_installed, "jdtls")
|
||||
table.insert(pcode.null_ls_ensure_installed, "google_java_format")
|
||||
-- table.insert(pcode.dap_ensure_installed, "javadbg")
|
||||
-- table.insert(pcode.unregister_lsp, "jdtls")
|
||||
end
|
||||
-- if pcode.active_java_config.active and pcode.active_java_config.use_nvim_jdtls then
|
||||
-- table.insert(pcode.treesitter_ensure_installed, "java")
|
||||
-- table.insert(pcode.mason_ensure_installed, "jdtls")
|
||||
-- table.insert(pcode.null_ls_ensure_installed, "google_java_format")
|
||||
-- table.insert(pcode.dap_ensure_installed, "javadbg")
|
||||
-- table.insert(pcode.unregister_lsp, "jdtls")
|
||||
-- end
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue