Skip to content

Commit

Permalink
Make helix default editor
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Dec 31, 2024
1 parent e036047 commit d03c2e7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 28 deletions.
7 changes: 4 additions & 3 deletions home/helix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
{
programs.helix = {
enable = true;
defaultEditor = true;
extraPackages = [
pkgs.golangci-lint-langserver
pkgs.gopls
pkgs.nil
pkgs.terraform-ls
];
settings = {
theme = "solarized_dark";
};
languages = {
language = [
{
Expand All @@ -22,5 +20,8 @@
}
];
};
settings = {
theme = "solarized_dark";
};
};
}
51 changes: 26 additions & 25 deletions home/neovim/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{ config, pkgs, ... }:
{ pkgs, ... }:

{
programs.neovim = {
enable = true;
defaultEditor = true;
extraPackages = [
pkgs.gopls
pkgs.lua-language-server
Expand All @@ -18,29 +17,31 @@
pkgs.yaml-language-server
];
extraLuaConfig = builtins.readFile ./extra-config.lua;
plugins = builtins.concatMap (plugin: pkgs.callPackage plugin { }) [
./plugins/auto-dark-mode
./plugins/cmp
./plugins/comment
./plugins/conform
./plugins/gitsigns
./plugins/lspconfig
./plugins/lualine
./plugins/null-ls
./plugins/solarized
./plugins/telescope
./plugins/treesitter
# ./plugins/which-key
./plugins/whitespace
] ++ [
{
plugin = pkgs.vimPlugins.oil-nvim;
config = ''
require("oil").setup()
'';
type = "lua";
}
];
plugins =
builtins.concatMap (plugin: pkgs.callPackage plugin { }) [
./plugins/auto-dark-mode
./plugins/cmp
./plugins/comment
./plugins/conform
./plugins/gitsigns
./plugins/lspconfig
./plugins/lualine
./plugins/null-ls
./plugins/solarized
./plugins/telescope
./plugins/treesitter
# ./plugins/which-key
./plugins/whitespace
]
++ [
{
plugin = pkgs.vimPlugins.oil-nvim;
config = ''
require("oil").setup()
'';
type = "lua";
}
];
viAlias = true;
vimAlias = true;
vimdiffAlias = true;
Expand Down

0 comments on commit d03c2e7

Please sign in to comment.