nvim-lint tweaks

This commit is contained in:
Thomas Avé 2025-01-29 15:18:37 +01:00
parent 9c2753cecd
commit 1aed007db0
4 changed files with 80 additions and 112 deletions

View File

@ -8,11 +8,11 @@
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-DuhR3y0gPZG0AJ2FDd+nUKzQMwT+c/DFIUWNDQ5Uyx4=", "narHash": "sha256-DuhR3y0gPZG0AJ2FDd+nUKzQMwT+c/DFIUWNDQ5Uyx4=",
"path": "/nix/store/hys6nngnj79apn31mjzri83ga89a2l5i-source/home/ags", "path": "/nix/store/csvrf75irirx4myzbb5bf9sif67g4h9q-source/home/ags",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/hys6nngnj79apn31mjzri83ga89a2l5i-source/home/ags", "path": "/nix/store/csvrf75irirx4myzbb5bf9sif67g4h9q-source/home/ags",
"type": "path" "type": "path"
} }
}, },
@ -178,11 +178,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1722536372, "lastModified": 1737991358,
"narHash": "sha256-kcaCZFYKWlGyyL1y5MQ/3LVNw+5GfW2kSYDixdrDJl0=", "narHash": "sha256-Xye+N7I2FMb+GC96xMDjWi/HX5XCoFCz1Ak+KvP9jUQ=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "430ff540f5cedb42cbd9267094d45f275cd480d4", "rev": "a005938761624fd8d3ab7cbb64fe57a40a9b36e9",
"revCount": 13, "revCount": 14,
"type": "git", "type": "git",
"url": "https://git.thomasave.be/thomasave/fzgo.git" "url": "https://git.thomasave.be/thomasave/fzgo.git"
}, },
@ -220,11 +220,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1737704314, "lastModified": 1738145391,
"narHash": "sha256-zta8jvOQ2wRCZmiwFEnS5iCulWAh8e+fLUlQxrgOBjM=", "narHash": "sha256-/9mfbWYN9HDQbKa2HdAe2T5e3FfY8e4eqc1FIvAyvLg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a0428685572b134f6594e7d7f5db5e1febbab2d7", "rev": "1b4f2a48168b3d90e11365552d1e7e601a4be6b6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -278,11 +278,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1737634889, "lastModified": 1737985436,
"narHash": "sha256-9JZE3KxcXOqZH9zs3UeadngDiK/yIACTiAR8HSA/TNI=", "narHash": "sha256-zx8FdI4zr2GhNyD1YGAqa2ymodAObTSAdwuWwVucewo=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprgraphics", "repo": "hyprgraphics",
"rev": "0d77b4895ad5f1bb3b0ee43103a5246c58b65591", "rev": "23783b96036f5506fdaf8b2250a1ef849d57f0d3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -298,20 +298,20 @@
"hyprgraphics": "hyprgraphics", "hyprgraphics": "hyprgraphics",
"hyprland-protocols": "hyprland-protocols", "hyprland-protocols": "hyprland-protocols",
"hyprland-qtutils": "hyprland-qtutils", "hyprland-qtutils": "hyprland-qtutils",
"hyprlang": "hyprlang_2", "hyprlang": "hyprlang",
"hyprutils": "hyprutils", "hyprutils": "hyprutils",
"hyprwayland-scanner": "hyprwayland-scanner", "hyprwayland-scanner": "hyprwayland-scanner",
"nixpkgs": "nixpkgs_4", "nixpkgs": "nixpkgs_3",
"pre-commit-hooks": "pre-commit-hooks", "pre-commit-hooks": "pre-commit-hooks",
"systems": "systems_2", "systems": "systems",
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1737733891, "lastModified": 1738157651,
"narHash": "sha256-OpzEqVCsgWhBI4DXstjQbyEDrlSjYMN/vFKqoe+d+Ds=", "narHash": "sha256-IObMsim4ZEDmCEc4EjJV8U+cJpUX1JFrMXgrVExZvXo=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "9b3f71390c3db14fd2fa2ff14d533eee34538c55", "rev": "61319197155cbcb3b8d5f004f46c2249029ec1f3",
"revCount": 5716, "revCount": 5757,
"submodules": true, "submodules": true,
"type": "git", "type": "git",
"url": "https://github.com/hyprwm/Hyprland" "url": "https://github.com/hyprwm/Hyprland"
@ -349,7 +349,11 @@
}, },
"hyprland-qt-support": { "hyprland-qt-support": {
"inputs": { "inputs": {
"hyprlang": "hyprlang", "hyprlang": [
"hyprland",
"hyprland-qtutils",
"hyprlang"
],
"nixpkgs": [ "nixpkgs": [
"hyprland", "hyprland",
"hyprland-qtutils", "hyprland-qtutils",
@ -378,8 +382,14 @@
"hyprland-qtutils": { "hyprland-qtutils": {
"inputs": { "inputs": {
"hyprland-qt-support": "hyprland-qt-support", "hyprland-qt-support": "hyprland-qt-support",
"hyprlang": [
"hyprland",
"hyprlang"
],
"hyprutils": [ "hyprutils": [
"hyprland", "hyprland",
"hyprland-qtutils",
"hyprlang",
"hyprutils" "hyprutils"
], ],
"nixpkgs": [ "nixpkgs": [
@ -392,11 +402,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1737634810, "lastModified": 1737981711,
"narHash": "sha256-ZIJ03DeisbQuDaADSgmbgyocjecaozK4yGTa0/9bOr0=", "narHash": "sha256-lh6cL5D8nPplB3WovCQjLUZ7k7MViiBrMlpkfm4R7/c=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprland-qtutils", "repo": "hyprland-qtutils",
"rev": "a9852dbf5a1ec77cf617543728144c1362709e46", "rev": "96bf0677fa9cd13508294e3d4559dfbbc8beff73",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -406,30 +416,6 @@
} }
}, },
"hyprlang": { "hyprlang": {
"inputs": {
"hyprutils": [
"hyprland",
"hyprland-qtutils",
"hyprutils"
],
"nixpkgs": "nixpkgs_3",
"systems": "systems"
},
"locked": {
"lastModified": 1737634606,
"narHash": "sha256-W7W87Cv6wqZ9PHegI6rH1+ve3zJPiyevMFf0/HwdbCQ=",
"owner": "hyprwm",
"repo": "hyprlang",
"rev": "f41271d35cc0f370d300413d756c2677f386af9d",
"type": "github"
},
"original": {
"owner": "hyprwm",
"repo": "hyprlang",
"type": "github"
}
},
"hyprlang_2": {
"inputs": { "inputs": {
"hyprutils": [ "hyprutils": [
"hyprland", "hyprland",
@ -465,11 +451,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1737340285, "lastModified": 1738115355,
"narHash": "sha256-teIcFC3VXB8/7+Hq6nK674eNG8hMCdd6lpqHCNietnY=", "narHash": "sha256-IKcUv2ayfiEoF9mOkt/+ACTSVI0RW/tCA9BS64/qePE=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "36f43793272c0700974477271ef0e0e544b21293", "rev": "cd997c211bd9c3fb71281233043c3484d8f6ec15",
"revCount": 61, "revCount": 62,
"type": "git", "type": "git",
"url": "https://github.com/shezdy/hyprsplit" "url": "https://github.com/shezdy/hyprsplit"
}, },
@ -490,11 +476,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1737632363, "lastModified": 1737978343,
"narHash": "sha256-X9I8POSlHxBVjD0fiX1O2j7U9Zi1+4rIkrsyHP0uHXY=", "narHash": "sha256-TfFS0HCEJh63Kahrkp1h9hVDMdLU8a37Zz+IFucxyfA=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "hyprutils", "repo": "hyprutils",
"rev": "006620eb29d54ea9086538891404c78563d1bae1", "rev": "6a8bc9d2a4451df12f5179dc0b1d2d46518a90ab",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -598,11 +584,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1737469691, "lastModified": 1737885589,
"narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=", "narHash": "sha256-Zf0hSrtzaM1DEz8//+Xs51k/wdSajticVrATqDrfQjg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab", "rev": "852ff1d9e153d8875a83602e03fdef8a63f0ecf8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -614,11 +600,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1737469691, "lastModified": 1737885589,
"narHash": "sha256-nmKOgAU48S41dTPIXAq0AHZSehWUn6ZPrUKijHAMmIk=", "narHash": "sha256-Zf0hSrtzaM1DEz8//+Xs51k/wdSajticVrATqDrfQjg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9e4d5190a9482a1fb9d18adf0bdb83c6e506eaab", "rev": "852ff1d9e153d8875a83602e03fdef8a63f0ecf8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -630,37 +616,21 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1737632463, "lastModified": 1737885589,
"narHash": "sha256-38J9QfeGSej341ouwzqf77WIHAScihAKCt8PQJ+NH28=", "narHash": "sha256-Zf0hSrtzaM1DEz8//+Xs51k/wdSajticVrATqDrfQjg=",
"owner": "NixOS", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0aa475546ed21629c4f5bbf90e38c846a99ec9e9", "rev": "852ff1d9e153d8875a83602e03fdef8a63f0ecf8",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "nixos",
"ref": "nixos-unstable", "ref": "nixos-unstable",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": {
"lastModified": 1737632463,
"narHash": "sha256-38J9QfeGSej341ouwzqf77WIHAScihAKCt8PQJ+NH28=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "0aa475546ed21629c4f5bbf90e38c846a99ec9e9",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_7": {
"locked": { "locked": {
"lastModified": 1730200266, "lastModified": 1730200266,
"narHash": "sha256-l253w0XMT8nWHGXuXqyiIC/bMvh1VRszGXgdpQlfhvU=", "narHash": "sha256-l253w0XMT8nWHGXuXqyiIC/bMvh1VRszGXgdpQlfhvU=",
@ -679,15 +649,15 @@
"nur": { "nur": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_6", "nixpkgs": "nixpkgs_5",
"treefmt-nix": "treefmt-nix" "treefmt-nix": "treefmt-nix"
}, },
"locked": { "locked": {
"lastModified": 1737736379, "lastModified": 1738158315,
"narHash": "sha256-SzUBVzIJSZE4AG/Fljc/aQ3+3YK/Hu0KXnh6K9N92qo=", "narHash": "sha256-2/ZPIHrRP5JC4bknUoPK/wimZHhxy0LFJdjEO5VVkVE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "30a6f0f8795d98d907a53cf8e06beca345fe3987", "rev": "7e2ca07db0689990c6baf152ddc8c169d95af4f5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -727,7 +697,7 @@
"hyprland": "hyprland", "hyprland": "hyprland",
"hyprsplit": "hyprsplit", "hyprsplit": "hyprsplit",
"nixos-06cb-009a-fingerprint-sensor": "nixos-06cb-009a-fingerprint-sensor", "nixos-06cb-009a-fingerprint-sensor": "nixos-06cb-009a-fingerprint-sensor",
"nixpkgs": "nixpkgs_5", "nixpkgs": "nixpkgs_4",
"nur": "nur", "nur": "nur",
"split-monitor-workspaces": "split-monitor-workspaces", "split-monitor-workspaces": "split-monitor-workspaces",
"worktimer": "worktimer" "worktimer": "worktimer"
@ -741,11 +711,11 @@
"nix-filter": "nix-filter" "nix-filter": "nix-filter"
}, },
"locked": { "locked": {
"lastModified": 1737317541, "lastModified": 1738003599,
"narHash": "sha256-GJOKrNi3EI4D6Xcl8xhQb8ZulziX//p7bh5JW67Y0Zs=", "narHash": "sha256-bIFSAQV/2/0evErs3yCafn+L/TCE2mrwh4oZPVyBjus=",
"owner": "Duckonaut", "owner": "Duckonaut",
"repo": "split-monitor-workspaces", "repo": "split-monitor-workspaces",
"rev": "1d4742b30aa9f3d01ea227a9c726985ffa832368", "rev": "b2d0888d5dd752d2603e99f3762d87ad1b3df1b0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -769,21 +739,6 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
"owner": "nix-systems",
"repo": "default-linux",
"rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default-linux",
"type": "github"
}
},
"treefmt-nix": { "treefmt-nix": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -808,7 +763,7 @@
"worktimer": { "worktimer": {
"inputs": { "inputs": {
"flake-parts": "flake-parts_3", "flake-parts": "flake-parts_3",
"nixpkgs": "nixpkgs_7" "nixpkgs": "nixpkgs_6"
}, },
"locked": { "locked": {
"lastModified": 1730850710, "lastModified": 1730850710,

View File

@ -33,7 +33,7 @@
-- Neocodium -- Neocodium
return { return {
"monkoose/neocodeium", "monkoose/neocodeium",
event = "VeryLazy", event = "InsertEnter",
config = function() config = function()
local neocodeium = require("neocodeium") local neocodeium = require("neocodeium")
neocodeium.setup() neocodeium.setup()

View File

@ -2,6 +2,14 @@ local function getWords()
return tostring(vim.fn.wordcount().words) .. " Words" return tostring(vim.fn.wordcount().words) .. " Words"
end end
local function lint_progress()
local linters = require("lint").get_running()
if #linters == 0 then
return "󰦕"
end
return "󱉶 " .. table.concat(linters, ", ")
end
return { return {
'nvim-lualine/lualine.nvim', 'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons', opt = true }, dependencies = { 'nvim-tree/nvim-web-devicons', opt = true },
@ -12,7 +20,7 @@ return {
}, },
sections = { sections = {
lualine_a = {'mode'}, lualine_a = {'mode'},
lualine_b = {'diff', 'diagnostics'}, lualine_b = {'diff', 'diagnostics', lint_progress},
lualine_c = {'filename'}, lualine_c = {'filename'},
lualine_x = {'encoding', 'fileformat', 'filetype'}, lualine_x = {'encoding', 'fileformat', 'filetype'},
lualine_y = {'filesize', getWords}, lualine_y = {'filesize', getWords},

View File

@ -3,17 +3,22 @@ return {
config = function () config = function ()
local dmypy = require("lint").linters.dmypy local dmypy = require("lint").linters.dmypy
dmypy.args = { dmypy.args = {
"run", 'run',
'--timeout', "--timeout",
'50000', "50000",
'--', "--export-types",
"--",
'--show-column-numbers', '--show-column-numbers',
'--show-error-end', '--show-error-end',
'--hide-error-context', '--hide-error-context',
'--no-color-output', '--no-color-output',
'--no-error-summary', '--no-error-summary',
'--no-pretty', '--no-pretty',
"--use-fine-grained-cache", '--cache-dir',
vim.fn.stdpath("cache") .. '/dmypy',
'--cache-fine-grained',
'--sqlite-cache',
'--skip-cache-mtime-checks',
'--python-executable', '--python-executable',
function() function()
return vim.fn.exepath 'python3' or vim.fn.exepath 'python' return vim.fn.exepath 'python3' or vim.fn.exepath 'python'