rm packages.nix

This commit is contained in:
Nikos Papadakis 2023-10-23 14:36:02 +03:00
parent 65d0168be3
commit d465beeca4
Signed by untrusted user who does not match committer: nikos
GPG key ID: 78871F9905ADFF02
4 changed files with 15 additions and 24 deletions

View file

@ -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;

View file

@ -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 {

View file

@ -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

View file

@ -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
]