refactor(nvim): clean up directory structure
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-12-21 21:49:59 -05:00
parent 9b01444637
commit 054964fd66
20 changed files with 20 additions and 18 deletions

View file

@ -7,10 +7,10 @@ self: {
inherit (lib) mkOption types; inherit (lib) mkOption types;
in { in {
imports = [ imports = [
./git.nix ./git
./treesitter.nix
(import ./langs self) (import ./langs self)
(import ./theme.nix self) (import ./theme self)
]; ];
options.programs.neovim = { options.programs.neovim = {

View file

@ -9,19 +9,19 @@ self: {
cfg = config.programs.neovim; cfg = config.programs.neovim;
in { in {
imports = [ imports = [
./bash.nix ./bash
./clang.nix ./c-lang
./hyprlang.nix ./hyprlang
./java.nix ./java
./json.nix ./json
./lua.nix ./lua
./python.nix ./python
./rust.nix ./rust
(import ./csharp.nix self) (import ./csharp self)
(import ./markdown.nix self) (import ./markdown self)
(import ./nix.nix self) (import ./nix-lang self)
(import ./web.nix self) (import ./web self)
]; ];
# FIXME: try making LSPs and stuff only available through devShells # FIXME: try making LSPs and stuff only available through devShells
@ -79,7 +79,7 @@ in {
{ {
plugin = pkgs.vimPlugins.nvim-cmp; plugin = pkgs.vimPlugins.nvim-cmp;
type = "lua"; type = "lua";
config = fileContents ../plugins/cmp.lua; config = fileContents ./config/cmp.lua;
} }
{ {

View file

@ -9,6 +9,8 @@ self: {
cfg = config.programs.neovim; cfg = config.programs.neovim;
in { in {
imports = [./treesitter.nix];
config.programs.neovim = { config.programs.neovim = {
extraPackages = attrValues { extraPackages = attrValues {
inherit (pkgs) bat; inherit (pkgs) bat;
@ -96,14 +98,14 @@ in {
{ {
plugin = pkgs.vimPlugins.heirline-nvim; plugin = pkgs.vimPlugins.heirline-nvim;
type = "lua"; type = "lua";
config = fileContents ./plugins/heirline.lua; config = fileContents ./config/heirline.lua;
} }
] ]
++ optionals cfg.enableIde [ ++ optionals cfg.enableIde [
{ {
plugin = pkgs.vimPlugins.neo-tree-nvim; plugin = pkgs.vimPlugins.neo-tree-nvim;
type = "lua"; type = "lua";
config = fileContents ./plugins/neotree.lua; config = fileContents ./config/neotree.lua;
} }
{ {
plugin = pkgs.vimPlugins.codewindow-nvim; plugin = pkgs.vimPlugins.codewindow-nvim;