rm packages.nix
This commit is contained in:
parent
65d0168be3
commit
d465beeca4
4 changed files with 15 additions and 24 deletions
12
home.nix
12
home.nix
|
@ -27,7 +27,17 @@
|
||||||
|
|
||||||
# The home.packages option allows you to install Nix packages into your
|
# The home.packages option allows you to install Nix packages into your
|
||||||
# environment.
|
# environment.
|
||||||
home.packages = import ./packages.nix pkgs;
|
home.packages = with pkgs; [
|
||||||
|
neovim # neovim nightly
|
||||||
|
ripgrep # "rg" cli, alternative to grep, used by nvim
|
||||||
|
fd # find alternative, used by nvim
|
||||||
|
lsd # "ls" alternative
|
||||||
|
zoxide # "z" command
|
||||||
|
nil # Nix LSP
|
||||||
|
nixpkgs-fmt # Nix formatter
|
||||||
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) # nerdfonts jetbrains mono
|
||||||
|
efm-langserver # Generic language server
|
||||||
|
];
|
||||||
|
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
|
|
|
@ -23,15 +23,10 @@ local function project()
|
||||||
"*.jpg",
|
"*.jpg",
|
||||||
}
|
}
|
||||||
|
|
||||||
local find_command = nil
|
local find_command = { "fd", "--hidden", "-t", "f" }
|
||||||
if FD_EXISTS == 1 then
|
for _, value in ipairs(exclusions) do
|
||||||
find_command = { "fd", "--hidden", "-t", "f" }
|
table.insert(find_command, "--exclude")
|
||||||
for _, value in ipairs(exclusions) do
|
table.insert(find_command, value)
|
||||||
table.insert(find_command, "--exclude")
|
|
||||||
table.insert(find_command, value)
|
|
||||||
end
|
|
||||||
elseif RIPGREP_EXISTS == 1 then
|
|
||||||
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" }
|
|
||||||
end
|
end
|
||||||
|
|
||||||
builtin.find_files {
|
builtin.find_files {
|
||||||
|
|
|
@ -4,9 +4,6 @@ Neovim Configuration
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
FD_EXISTS = vim.fn.executable("fd")
|
|
||||||
RIPGREP_EXISTS = vim.fn.executable("rg")
|
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.g.maplocalleader = " "
|
vim.g.maplocalleader = " "
|
||||||
-- vim.g.netrw_banner = 0
|
-- vim.g.netrw_banner = 0
|
||||||
|
|
11
packages.nix
11
packages.nix
|
@ -1,11 +0,0 @@
|
||||||
pkgs: with pkgs; [
|
|
||||||
neovim # neovim nightly
|
|
||||||
ripgrep # "rg" cli, alternative to grep, used by nvim
|
|
||||||
fd # find alternative, used by nvim
|
|
||||||
lsd # "ls" alternative
|
|
||||||
zoxide # "z" command
|
|
||||||
nil # Nix LSP
|
|
||||||
nixpkgs-fmt # Nix formatter
|
|
||||||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) # nerdfonts jetbrains mono
|
|
||||||
efm-langserver # Generic language server
|
|
||||||
]
|
|
Loading…
Reference in a new issue