Make linting work

This commit is contained in:
2025-05-07 17:30:19 +02:00
parent 5529de45a9
commit 8c9ad10822
3 changed files with 20 additions and 11 deletions

View File

@@ -619,7 +619,7 @@ require('lazy').setup({
vue = { hybridMode = true },
},
},
eslint = {},
--eslint = {},
--prettierd = {},
-- TODO: end
html = {},
@@ -809,7 +809,12 @@ require('lazy').setup({
completion = {
-- By default, you may press `<c-space>` to show the documentation.
-- Optionally, set `auto_show = true` to show the documentation after a delay.
documentation = { auto_show = true },
documentation = {
auto_show = true,
treesitter_highlighting = true,
window = { border = 'none' },
auto_show_delay_ms = 0,
},
accept = { create_undo_point = true, auto_brackets = { enabled = true } },
ghost_text = { enabled = true },
menu = { auto_show = true, enabled = true },
@@ -817,7 +822,6 @@ require('lazy').setup({
sources = {
default = { 'copilot', 'lsp', 'path', 'lazydev', 'snippets' },
providers = {
copilot = {
name = 'copilot',
@@ -826,11 +830,15 @@ require('lazy').setup({
async = true,
max_items = 1,
},
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
lsp = { score_offset = 0 },
-- Lazydev gives autocompletion for lua, imported libraries and ---@module "nvim-treesitter" statements
lazydev = { module = 'lazydev.integrations.blink', score_offset = 0, max_items = 5 },
path = { score_offset = 0, max_items = 5, min_keyword_length = 2, async = true },
snippets = { score_offset = -10, max_items = 5, min_keyword_length = 2, async = true },
},
},
snippets = { preset = 'luasnip', score_offset = -100 },
snippets = { preset = 'luasnip' },
-- Blink.cmp includes an optional, recommended rust fuzzy matcher,
-- which automatically downloads a prebuilt binary when enabled.

View File

@@ -7,16 +7,16 @@
"copilot.lua": { "branch": "master", "commit": "7ba73866b9b3c696f80579c470c6eec374d3acec" },
"fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"gitsigns.nvim": { "branch": "main", "commit": "056d5ea359efe35c4e25e2ebcc255117ac86500d" },
"gitsigns.nvim": { "branch": "main", "commit": "43b0c856ae5f32a195d83f4a27fe21d63e6c966c" },
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "1255518cb067e038a4755f5cb3e980f79b6ab89c" },
"mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" },
"mini.nvim": { "branch": "main", "commit": "51cec14696190ad5b61e6c559ae558c703b71906" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "d39a75bbce4b8aad5d627191ea915179c77c100f" },
"mason-tool-installer.nvim": { "branch": "main", "commit": "aafae207d5a2a28c59c9d478d8581c2739135d09" },
"mason.nvim": { "branch": "main", "commit": "7c7318e8bae7e3536ef6b9e86b9e38e74f2e125e" },
"mini.nvim": { "branch": "main", "commit": "6105b69d79fef0afed5ed576081b1997ef2b4be1" },
"nvim-lint": { "branch": "master", "commit": "9dfb77ef6c5092a19502883c02dc5a02ec648729" },
"nvim-lspconfig": { "branch": "master", "commit": "4bc481b6f0c0cf3671fc894debd0e00347089a4e" },
"nvim-treesitter": { "branch": "master", "commit": "94ea4f436d2b59c80f02e293466c374584f03b8c" },
"nvim-treesitter": { "branch": "master", "commit": "28d480e0624b259095e56f353ec911f9f2a0f404" },
"nvim-web-devicons": { "branch": "master", "commit": "2c2b4eafce6cdd0cb165036faa17396eff18f847" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },

View File

@@ -9,6 +9,7 @@ return {
markdown = { 'markdownlint' },
javascript = { 'eslint_d' },
typescript = { 'eslint_d' },
vue = { 'eslint_d' },
}
-- To allow other plugins to add linters to require('lint').linters_by_ft,