refactor: update neovim config to new home-manager options

main
mandlm 2024-05-30 12:29:43 +02:00
parent 7d326185a1
commit bad525d575
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 34 additions and 35 deletions

View File

@ -1,45 +1,18 @@
{ config, lib, pkgs, user, theme, ... }:
{ pkgs, theme, ... }:
let
pkg_src = pkgs.unstable;
in
{
home.packages = with pkgs.unstable; [
xclip
# language servers
lua-language-server
terraform-ls
tflint
nodejs
nodePackages.bash-language-server
nodePackages.yaml-language-server
nodePackages.prettier
nodePackages.eslint_d
nodePackages.typescript-language-server
nodePackages.typescript
nodePackages.dockerfile-language-server-nodejs
nodePackages.vscode-langservers-extracted
nodePackages.volar
lldb
vscode-extensions.vadimcn.vscode-lldb
marksman
clang-tools
cmake-language-server
texlab
nixd
nixpkgs-fmt
];
# symlink for a stable path
home.file.".vscode-extensions/vscode-lldb".source = pkgs.unstable.vscode-extensions.vadimcn.vscode-lldb;
home.sessionVariables = {
EDITOR = "nvim";
};
home.file.".vscode-extensions/vscode-lldb".source = pkg_src.vscode-extensions.vadimcn.vscode-lldb;
programs = {
neovim = {
enable = true;
package = pkgs.unstable.neovim-unwrapped;
plugins = with pkgs.unstable.vimPlugins; [
package = pkg_src.neovim-unwrapped;
defaultEditor = true;
plugins = with pkg_src.vimPlugins; [
# theme
nvim-solarized-lua
@ -113,6 +86,32 @@
nvim-dap-ui
];
withNodeJs = true;
extraPackages = with pkg_src; [
# language servers
lua-language-server
terraform-ls
tflint
nodePackages.bash-language-server
nodePackages.yaml-language-server
nodePackages.prettier
nodePackages.eslint_d
nodePackages.typescript-language-server
nodePackages.typescript
nodePackages.dockerfile-language-server-nodejs
nodePackages.vscode-langservers-extracted
nodePackages.volar
lldb
vscode-extensions.vadimcn.vscode-lldb
marksman
clang-tools
cmake-language-server
texlab
nixd
nixpkgs-fmt
];
extraConfig = ''
lua << EOF
vim.o.guifont = "DejaVu Sans Mono:h10"