feat(nvim): setup basedpyright
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-05-11 20:10:45 -04:00
parent b0323e5fe1
commit 69f6134563
4 changed files with 30 additions and 5 deletions

View file

@ -19,6 +19,7 @@ in
neovim = { neovim = {
plugins = [ plugins = [
vimPlugins.markdown-preview-nvim vimPlugins.markdown-preview-nvim
{ {
plugin = buildPlugin "easytables-nvim" vimplugin-easytables-src; plugin = buildPlugin "easytables-nvim" vimplugin-easytables-src;
type = "lua"; type = "lua";

View file

@ -2,22 +2,28 @@
config, config,
lib, lib,
pkgs, pkgs,
basedpyright,
... ...
}: let }: let
inherit (config.vars) neovimIde; inherit (config.vars) neovimIde;
inherit (pkgs) vimPlugins;
in in
lib.mkIf neovimIde { lib.mkIf neovimIde {
programs = { programs = {
neovim = { neovim = {
withPython3 = true; withPython3 = true;
extraPython3Packages = ps: [ extraPackages = [
ps.pylint basedpyright.legacyPackages.${pkgs.system}.basedpyright
]; ];
plugins = [ extraLuaConfig =
]; /*
lua
*/
''
require('lspconfig').basedpyright.setup(
require('coq').lsp_ensure_capabilities({}));
'';
}; };
}; };
} }

View file

@ -83,6 +83,22 @@
"type": "github" "type": "github"
} }
}, },
"basedpyright": {
"locked": {
"lastModified": 1715279725,
"narHash": "sha256-dy+5OXWNvz7tFIXdbP72baRxkdqSywATNsHcYDxGfHw=",
"owner": "kiike",
"repo": "nixpkgs",
"rev": "695099b46a475665c25a2d1851d25e92c2711dcb",
"type": "github"
},
"original": {
"owner": "kiike",
"ref": "pkgs/basedpyright",
"repo": "nixpkgs",
"type": "github"
}
},
"bat-theme-src": { "bat-theme-src": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -1686,6 +1702,7 @@
"ags": "ags", "ags": "ags",
"arion": "arion", "arion": "arion",
"astal": "astal", "astal": "astal",
"basedpyright": "basedpyright",
"bat-theme-src": "bat-theme-src", "bat-theme-src": "bat-theme-src",
"caddy-plugins": "caddy-plugins", "caddy-plugins": "caddy-plugins",
"curseforge-server-downloader-src": "curseforge-server-downloader-src", "curseforge-server-downloader-src": "curseforge-server-downloader-src",

View file

@ -349,6 +349,7 @@
owner = "nix-community"; owner = "nix-community";
repo = "nixd"; repo = "nixd";
}; };
basedpyright.url = "github:kiike/nixpkgs/pkgs/basedpyright";
vimplugin-easytables-src = { vimplugin-easytables-src = {
type = "github"; type = "github";