feat(nvim): setup basedpyright
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
b0323e5fe1
commit
69f6134563
4 changed files with 12 additions and 5 deletions
|
@ -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";
|
||||||
|
|
|
@ -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({}));
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
Loading…
Reference in a new issue