mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-08-07 19:35:17 +02:00
add: update tune config
This commit is contained in:
parent
86d1629612
commit
d2799f9f3f
4 changed files with 209 additions and 191 deletions
|
@ -40,12 +40,12 @@
|
||||||
"nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" },
|
"nvim-ts-rainbow2": { "branch": "master", "commit": "b3120cd5ae9ca524af9cb602f41e12e301fa985f" },
|
||||||
"nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" },
|
"nvim-ufo": { "branch": "main", "commit": "a5390706f510d39951dd581f6d2a972741b3fa26" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" },
|
"nvim-web-devicons": { "branch": "master", "commit": "a55b801b7ef5719ca25692c3a0a5447fdfb692ed" },
|
||||||
"onedarkpro.nvim": { "branch": "main", "commit": "ec07364f3cfa9cc6467bf067a490cfd74011efcd" },
|
"onedark.nvim": { "branch": "master", "commit": "1230aaf2a427b2c5b73aba6e4a9a5881d3e69429" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
||||||
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
|
"promise-async": { "branch": "main", "commit": "38a4575da9497326badd3995e768b4ccf0bb153e" },
|
||||||
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
"smart-splits.nvim": { "branch": "master", "commit": "f6fcb79527872e9330c554915af2ca511c388390" },
|
||||||
"statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" },
|
"statuscol.nvim": { "branch": "main", "commit": "d954893262a57a92e46edd87de67e2b3fe72305e" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "d26b666b45e5dde23332e4bde1227677f2d92e31" },
|
"telescope.nvim": { "branch": "master", "commit": "5a701e99906961218b55d7ad6c2a998f066c6fe0" },
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
"toggleterm.nvim": { "branch": "main", "commit": "193786e0371e3286d3bc9aa0079da1cd41beaa62" },
|
||||||
"vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" },
|
"vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" },
|
||||||
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
"vim-startuptime": { "branch": "master", "commit": "97a88e688482a09c3c4b777d07b509b328a5ec29" },
|
||||||
|
|
|
@ -15,7 +15,8 @@ return {
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ "MunifTanjim/nui.nvim", enabled = use_noice },
|
{ "MunifTanjim/nui.nvim", enabled = use_noice },
|
||||||
},
|
},
|
||||||
event = "BufWinEnter",
|
-- event = "BufWinEnter",
|
||||||
|
event = "VeryLazy",
|
||||||
opts = {
|
opts = {
|
||||||
messages = {
|
messages = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
@ -102,15 +103,15 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"hrsh7th/cmp-cmdline",
|
"hrsh7th/cmp-cmdline",
|
||||||
-- event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
enabled = use_noice,
|
enabled = use_noice,
|
||||||
init = function()
|
init = function()
|
||||||
-- load if mode command mode
|
-- load if mode command mode
|
||||||
vim.api.nvim_create_autocmd("CmdlineEnter", {
|
-- vim.api.nvim_create_autocmd("CmdlineEnter", {
|
||||||
callback = function()
|
-- callback = function()
|
||||||
require("lazy").load({ plugins = { "cmp-cmdline" } })
|
-- require("lazy").load({ plugins = { "cmp-cmdline" } })
|
||||||
end,
|
-- end,
|
||||||
})
|
-- })
|
||||||
end,
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
|
|
|
@ -322,7 +322,20 @@ return {
|
||||||
-- build = "npm install -g live-server",
|
-- build = "npm install -g live-server",
|
||||||
-- },
|
-- },
|
||||||
-- for multi cursor select
|
-- for multi cursor select
|
||||||
{ "mg979/vim-visual-multi", event = { "BufRead", "InsertEnter", "BufNewFile" }, lazy = true },
|
{
|
||||||
|
"mg979/vim-visual-multi",
|
||||||
|
event = { "BufRead", "InsertEnter", "BufNewFile" },
|
||||||
|
lazy = true,
|
||||||
|
init = function()
|
||||||
|
vim.g.VM_mouse_mappings = 1 -- equal CTRL + Left Click on VSCODE
|
||||||
|
vim.g.VM_maps = {
|
||||||
|
["Find Under"] = "<C-d>", -- equal CTRL+D on VSCODE
|
||||||
|
["Find Subword Under"] = "<C-d>", -- equal CTRL+D on VSCODE
|
||||||
|
["Select Cursor Down"] = "<M-C-Down>", -- equal CTRL+ALT+DOWN on VSCODE
|
||||||
|
["Select Cursor Up"] = "<M-C-Up>", -- equal CTRL+ALT+UP on VSCODE
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
},
|
||||||
-- for auto close tag
|
-- for auto close tag
|
||||||
{
|
{
|
||||||
"windwp/nvim-ts-autotag",
|
"windwp/nvim-ts-autotag",
|
||||||
|
@ -370,7 +383,8 @@ return {
|
||||||
{
|
{
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
event = "BufWinEnter",
|
-- event = "BufWinEnter",
|
||||||
|
event = "VeryLazy",
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>un",
|
"<leader>un",
|
||||||
|
|
|
@ -1,197 +1,200 @@
|
||||||
local default_schemas = nil
|
local default_schemas = nil
|
||||||
local status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls")
|
local status_ok, jsonls_settings = pcall(require, "nlspsettings.jsonls")
|
||||||
if status_ok then
|
if status_ok then
|
||||||
default_schemas = jsonls_settings.get_default_schemas()
|
default_schemas = jsonls_settings.get_default_schemas()
|
||||||
end
|
end
|
||||||
|
|
||||||
local schemas = {
|
local schemas = {
|
||||||
{
|
{
|
||||||
description = "TypeScript compiler configuration file",
|
description = "TypeScript compiler configuration file",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"tsconfig.json",
|
"tsconfig.json",
|
||||||
"tsconfig.*.json",
|
"tsconfig.*.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/tsconfig.json",
|
url = "https://json.schemastore.org/tsconfig.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Lerna config",
|
description = "Lerna config",
|
||||||
fileMatch = { "lerna.json" },
|
fileMatch = { "lerna.json" },
|
||||||
url = "https://json.schemastore.org/lerna.json",
|
url = "https://json.schemastore.org/lerna.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Babel configuration",
|
description = "Babel configuration",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
".babelrc.json",
|
".babelrc.json",
|
||||||
".babelrc",
|
".babelrc",
|
||||||
"babel.config.json",
|
"babel.config.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/babelrc.json",
|
url = "https://json.schemastore.org/babelrc.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "ESLint config",
|
description = "ESLint config",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
".eslintrc.json",
|
".eslintrc.json",
|
||||||
".eslintrc",
|
".eslintrc",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/eslintrc.json",
|
url = "https://json.schemastore.org/eslintrc.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Bucklescript config",
|
description = "Bucklescript config",
|
||||||
fileMatch = { "bsconfig.json" },
|
fileMatch = { "bsconfig.json" },
|
||||||
url = "https://raw.githubusercontent.com/rescript-lang/rescript-compiler/8.2.0/docs/docson/build-schema.json",
|
url = "https://raw.githubusercontent.com/rescript-lang/rescript-compiler/8.2.0/docs/docson/build-schema.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Prettier config",
|
description = "Prettier config",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
".prettierrc",
|
".prettierrc",
|
||||||
".prettierrc.json",
|
".prettierrc.json",
|
||||||
"prettier.config.json",
|
"prettier.config.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/prettierrc",
|
url = "https://json.schemastore.org/prettierrc",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Vercel Now config",
|
description = "Vercel Now config",
|
||||||
fileMatch = { "now.json" },
|
fileMatch = { "now.json" },
|
||||||
url = "https://json.schemastore.org/now",
|
url = "https://json.schemastore.org/now",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Stylelint config",
|
description = "Stylelint config",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
".stylelintrc",
|
".stylelintrc",
|
||||||
".stylelintrc.json",
|
".stylelintrc.json",
|
||||||
"stylelint.config.json",
|
"stylelint.config.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/stylelintrc",
|
url = "https://json.schemastore.org/stylelintrc",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "A JSON schema for the ASP.NET LaunchSettings.json files",
|
description = "A JSON schema for the ASP.NET LaunchSettings.json files",
|
||||||
fileMatch = { "launchsettings.json" },
|
fileMatch = { "launchsettings.json" },
|
||||||
url = "https://json.schemastore.org/launchsettings.json",
|
url = "https://json.schemastore.org/launchsettings.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Schema for CMake Presets",
|
description = "Schema for CMake Presets",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"CMakePresets.json",
|
"CMakePresets.json",
|
||||||
"CMakeUserPresets.json",
|
"CMakeUserPresets.json",
|
||||||
},
|
},
|
||||||
url = "https://raw.githubusercontent.com/Kitware/CMake/master/Help/manual/presets/schema.json",
|
url = "https://raw.githubusercontent.com/Kitware/CMake/master/Help/manual/presets/schema.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Configuration file as an alternative for configuring your repository in the settings page.",
|
description = "Configuration file as an alternative for configuring your repository in the settings page.",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
".codeclimate.json",
|
".codeclimate.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/codeclimate.json",
|
url = "https://json.schemastore.org/codeclimate.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "LLVM compilation database",
|
description = "LLVM compilation database",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"compile_commands.json",
|
"compile_commands.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/compile-commands.json",
|
url = "https://json.schemastore.org/compile-commands.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Config file for Command Task Runner",
|
description = "Config file for Command Task Runner",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"commands.json",
|
"commands.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/commands.json",
|
url = "https://json.schemastore.org/commands.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "AWS CloudFormation provides a common language for you to describe and provision all the infrastructure resources in your cloud environment.",
|
description = "AWS CloudFormation provides a common language for you to describe and provision all the infrastructure resources in your cloud environment.",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"*.cf.json",
|
"*.cf.json",
|
||||||
"cloudformation.json",
|
"cloudformation.json",
|
||||||
},
|
},
|
||||||
url = "https://raw.githubusercontent.com/awslabs/goformation/v5.2.9/schema/cloudformation.schema.json",
|
url = "https://raw.githubusercontent.com/awslabs/goformation/v5.2.9/schema/cloudformation.schema.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "The AWS Serverless Application Model (AWS SAM, previously known as Project Flourish) extends AWS CloudFormation to provide a simplified way of defining the Amazon API Gateway APIs, AWS Lambda functions, and Amazon DynamoDB tables needed by your serverless application.",
|
description = "The AWS Serverless Application Model (AWS SAM, previously known as Project Flourish) extends AWS CloudFormation to provide a simplified way of defining the Amazon API Gateway APIs, AWS Lambda functions, and Amazon DynamoDB tables needed by your serverless application.",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"serverless.template",
|
"serverless.template",
|
||||||
"*.sam.json",
|
"*.sam.json",
|
||||||
"sam.json",
|
"sam.json",
|
||||||
},
|
},
|
||||||
url = "https://raw.githubusercontent.com/awslabs/goformation/v5.2.9/schema/sam.schema.json",
|
url = "https://raw.githubusercontent.com/awslabs/goformation/v5.2.9/schema/sam.schema.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Json schema for properties json file for a GitHub Workflow template",
|
description = "Json schema for properties json file for a GitHub Workflow template",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
".github/workflow-templates/**.properties.json",
|
".github/workflow-templates/**.properties.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/github-workflow-template-properties.json",
|
url = "https://json.schemastore.org/github-workflow-template-properties.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "golangci-lint configuration file",
|
description = "golangci-lint configuration file",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
".golangci.toml",
|
".golangci.toml",
|
||||||
".golangci.json",
|
".golangci.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/golangci-lint.json",
|
url = "https://json.schemastore.org/golangci-lint.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "JSON schema for the JSON Feed format",
|
description = "JSON schema for the JSON Feed format",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"feed.json",
|
"feed.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/feed.json",
|
url = "https://json.schemastore.org/feed.json",
|
||||||
versions = {
|
versions = {
|
||||||
["1"] = "https://json.schemastore.org/feed-1.json",
|
["1"] = "https://json.schemastore.org/feed-1.json",
|
||||||
["1.1"] = "https://json.schemastore.org/feed.json",
|
["1.1"] = "https://json.schemastore.org/feed.json",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Packer template JSON configuration",
|
description = "Packer template JSON configuration",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"packer.json",
|
"packer.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/packer.json",
|
url = "https://json.schemastore.org/packer.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "NPM configuration file",
|
description = "NPM configuration file",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"package.json",
|
"package.json",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/package.json",
|
url = "https://json.schemastore.org/package.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "JSON schema for Visual Studio component configuration files",
|
description = "JSON schema for Visual Studio component configuration files",
|
||||||
fileMatch = {
|
fileMatch = {
|
||||||
"*.vsconfig",
|
"*.vsconfig",
|
||||||
},
|
},
|
||||||
url = "https://json.schemastore.org/vsconfig.json",
|
url = "https://json.schemastore.org/vsconfig.json",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
description = "Resume json",
|
description = "Resume json",
|
||||||
fileMatch = { "resume.json" },
|
fileMatch = { "resume.json" },
|
||||||
url = "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
|
url = "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local function extend(tab1, tab2)
|
local function extend(tab1, tab2)
|
||||||
for _, value in ipairs(tab2 or {}) do
|
for _, value in ipairs(tab2 or {}) do
|
||||||
table.insert(tab1, value)
|
table.insert(tab1, value)
|
||||||
end
|
end
|
||||||
return tab1
|
return tab1
|
||||||
end
|
end
|
||||||
|
|
||||||
local extended_schemas = extend(schemas, default_schemas)
|
local extended_schemas = extend(schemas, default_schemas)
|
||||||
|
|
||||||
local opts = {
|
local opts = {
|
||||||
settings = {
|
settings = {
|
||||||
json = {
|
json = {
|
||||||
schemas = extended_schemas,
|
schemas = extended_schemas,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup = {
|
setup = {
|
||||||
commands = {
|
commands = {
|
||||||
Format = {
|
Format = {
|
||||||
function()
|
function()
|
||||||
vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line "$", 0 })
|
vim.lsp.buf.range_formatting({}, { 0, 0 }, { vim.fn.line("$"), 0 })
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
init_options = {
|
||||||
|
provideFormatter = false,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue