summaryrefslogtreecommitdiffstats
path: root/modules/desktop/apps/editors
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2024-04-29 17:07:29 -0400
committerJon Santmyer <jon@jonsantmyer.com>2024-04-29 17:07:29 -0400
commitb4ffcbe13301291e0d04169a9ac0377d52621c4f (patch)
treed1c52818a26843747b74cb8d16c399e983e934b1 /modules/desktop/apps/editors
parent69857d405fcc45194b4a4c4bb1f9946c05e50631 (diff)
parent7e1c5f4418a629d6f3bae954dd172ca81e476b3e (diff)
downloadnix-config-b4ffcbe13301291e0d04169a9ac0377d52621c4f.tar.gz
nix-config-b4ffcbe13301291e0d04169a9ac0377d52621c4f.tar.bz2
nix-config-b4ffcbe13301291e0d04169a9ac0377d52621c4f.zip
Merge remote-tracking branch 'origin/master' into desktop
Diffstat (limited to 'modules/desktop/apps/editors')
-rw-r--r--modules/desktop/apps/editors/neovim.nix41
1 files changed, 35 insertions, 6 deletions
diff --git a/modules/desktop/apps/editors/neovim.nix b/modules/desktop/apps/editors/neovim.nix
index 77857a2..ee6424b 100644
--- a/modules/desktop/apps/editors/neovim.nix
+++ b/modules/desktop/apps/editors/neovim.nix
@@ -16,11 +16,6 @@ in {
};
config = lib.mkIf (nvimConf.enable) {
-
- home.manager.xdg.configFile."nvim/init.vim".source = "${configDir}/nvim/init.vim";
- home.manager.xdg.configFile."nvim/lua/init.lua".source = "${configDir}/nvim/init.lua";
- home.manager.xdg.configFile."nvim/lua/plugins.lua".source = "${configDir}/nvim/plugins.lua";
-
modules.desktop.defaultApplications.apps.editor = rec {
package = pkgs.neovim;
install = false;
@@ -29,7 +24,11 @@ in {
};
home.packages = [
-
+ pkgs.rnix-lsp
+ pkgs.ccls
+ pkgs.nodePackages.bash-language-server
+ pkgs.texlab
+ pkgs.sumneko-lua-language-server
];
home.manager.programs.neovim = {
@@ -37,6 +36,36 @@ in {
viAlias = true;
vimAlias = true;
withNodeJs = true;
+
+ extraConfig = ''
+ luafile /etc/nixos/config/nvim/lua/settings.lua
+ luafile /etc/nixos/config/nvim/lua/lsp.lua
+ '';
+
+ plugins = with pkgs.vimPlugins; [
+ nvim-web-devicons
+ gitsigns-nvim
+ nvim-tree-lua
+ catppuccin-nvim
+
+ nvim-lspconfig
+ nvim-cmp
+ cmp-cmdline
+ cmp-nvim-lsp
+ cmp-buffer
+ cmp-path
+ cmp-vsnip
+ cmp-treesitter
+
+ vim-nix
+ vim-vsnip
+ nvim-treesitter.withAllGrammars
+ neoformat
+
+ bufferline-nvim
+ lualine-nvim
+ alpha-nvim
+ ];
};
};
}