feat(nvim): setup basedpyright

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
common/home/neovim/langs

View file

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

View file

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