neovim: fix config issues
This commit is contained in:
parent
9cabbde103
commit
fac81ea442
1 changed files with 9 additions and 9 deletions
|
|
@ -1,12 +1,11 @@
|
||||||
{ pkgs, config, lib, ... }: let
|
{ pkgs, config, lib, ... }: let
|
||||||
inherit (lib) optionals;
|
inherit (lib) optionals optionalAttrs;
|
||||||
in {
|
in {
|
||||||
environment.variables.EDITOR = "nvim";
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
home-manager.sharedModules = [{
|
home-manager.sharedModules = [{
|
||||||
programs.neovim = {
|
programs.neovim = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraLuaConfig = lib.fileContents ../home/dotfiles/nvim/init.lua;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|
@ -14,8 +13,6 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
vimPlugins.markdown-preview-nvim
|
|
||||||
|
|
||||||
# Lua
|
# Lua
|
||||||
luajitPackages.luarocks_bootstrap
|
luajitPackages.luarocks_bootstrap
|
||||||
lua-language-server
|
lua-language-server
|
||||||
|
|
@ -24,14 +21,17 @@ in {
|
||||||
|
|
||||||
nodejs
|
nodejs
|
||||||
nodePackages."sass"
|
nodePackages."sass"
|
||||||
|
|
||||||
|
|
||||||
#llvmPackages_20.clangWithLibcAndBasicRtAndLibcxx
|
|
||||||
] ++ optionals config.onLinux [
|
] ++ optionals config.onLinux [
|
||||||
gcc_multi
|
#gcc_multi
|
||||||
];
|
];
|
||||||
|
|
||||||
home.file = lib.mkIf config.onLinux {
|
home.file = {
|
||||||
|
".config/nvim" = {
|
||||||
|
source = ../home/dotfiles/nvim;
|
||||||
|
force = true;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
|
} // optionalAttrs config.onLinux {
|
||||||
".config/i3status" = {
|
".config/i3status" = {
|
||||||
source = ../home/dotfiles/i3status;
|
source = ../home/dotfiles/i3status;
|
||||||
force = true;
|
force = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue