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
|
||||
# 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;
|
||||
|
||||
|
|
|
@ -23,16 +23,11 @@ local function project()
|
|||
"*.jpg",
|
||||
}
|
||||
|
||||
local find_command = nil
|
||||
if FD_EXISTS == 1 then
|
||||
find_command = { "fd", "--hidden", "-t", "f" }
|
||||
local find_command = { "fd", "--hidden", "-t", "f" }
|
||||
for _, value in ipairs(exclusions) do
|
||||
table.insert(find_command, "--exclude")
|
||||
table.insert(find_command, value)
|
||||
end
|
||||
elseif RIPGREP_EXISTS == 1 then
|
||||
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*" }
|
||||
end
|
||||
|
||||
builtin.find_files {
|
||||
find_command = find_command,
|
||||
|
|
|
@ -4,9 +4,6 @@ Neovim Configuration
|
|||
|
||||
--]]
|
||||
|
||||
FD_EXISTS = vim.fn.executable("fd")
|
||||
RIPGREP_EXISTS = vim.fn.executable("rg")
|
||||
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
-- 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