nvim lsp fixes and a new wifi password

This commit is contained in:
Rouven Seifert 2023-03-13 13:50:07 +01:00
parent 5f5ca3fc12
commit 6dc9cb9dbf
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
4 changed files with 41 additions and 33 deletions

View file

@ -1,13 +1,10 @@
{ config, pkgs, ... }:
{
home.packages = with pkgs; [
ripgrep
black
];
programs.nixvim = {
enable = true;
vimAlias = true;
colorscheme = "dracula"; options =
colorscheme = "dracula";
options =
{
shiftwidth = 4;
expandtab = false;
@ -94,12 +91,10 @@
'';
servers = {
# pylsp is broken
pyright = {
enable = true;
};
#pylsp = {
#enable = true;
#};
texlab = {
enable = true;
};
@ -108,6 +103,17 @@
};
};
};
null-ls = {
enable = true;
sources.formatting.black = {
enable = true;
withArgs = ''
({
extra_args = { "-l", "120" }
})
'';
};
};
nvim-cmp = {
enable = true;
mappingPresets = [ "insert" ];
@ -152,7 +158,7 @@
};
extraPlugins = with pkgs.vimPlugins;
[
vim-nix
vim-nix
dracula-vim
nerdcommenter
];