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;
in {
imports = [
./git.nix
./treesitter.nix
./git
(import ./langs self)
(import ./theme.nix self)
(import ./theme self)
];
options.programs.neovim = {

View file

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

View file

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